From a795e317f69ceb5093477a71431ccd1a602da79e Mon Sep 17 00:00:00 2001
From: Manuel Kaufmann <humitos@gmail.com>
Date: Mon, 26 Mar 2012 23:23:57 -0300
Subject: [PATCH jhbuild] PS1 variable for "shell" command
Identifier "(sugar)" added to the PS1 variable, so we can know if we are in a
common or a sugar shell. This is to avoid confusion to the developers.
This patch solves issue #3399.
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
---
sjhbuild/config.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/sjhbuild/config.py b/sjhbuild/config.py
index 95105ad..b18d8a5 100644
a
|
b
|
class Config(jhbuild.config.Config): |
88 | 88 | |
89 | 89 | if not 'SUGAR_PROFILE' in os.environ: |
90 | 90 | os.environ['SUGAR_PROFILE'] = 'default' |
| 91 | |
| 92 | os.environ['PS1'] = '(sugar)$ ' |
| 93 | if 'PS1' in os.environ['PS1']: |
| 94 | os.environ['PS1'] += os.environ['PS1'] |