diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-23 18:29:55 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-23 18:32:14 (GMT) |
commit | 8956a666c3fb455de4cdb167611bc478e20948da (patch) | |
tree | 0fd9973cfcbf627e6cd3e67ed3375309bf679d94 /devbot | |
parent | 9c186e63e71ea79609d460a03df8327b699c7dbf (diff) |
Fix shell prompt string on ubuntu
It was getting overwritten by ~/.bashrc
Diffstat (limited to 'devbot')
-rw-r--r-- | devbot/environ.py | 1 | ||||
-rw-r--r-- | devbot/shell.py | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/devbot/environ.py b/devbot/environ.py index a493134..12140b7 100644 --- a/devbot/environ.py +++ b/devbot/environ.py @@ -51,7 +51,6 @@ def _setup_variables(): os.environ["GTK_DATA_PREFIX"] = config.install_dir os.environ["GTK_PATH"] = os.path.join(config.lib_dir, "gtk-2.0") - os.environ["PS1"] = "[sugar-build \W]$ " def _setup_gconf(): gconf_dir = os.path.join(config.etc_dir, "gconf") diff --git a/devbot/shell.py b/devbot/shell.py index abe0695..66f26f9 100644 --- a/devbot/shell.py +++ b/devbot/shell.py @@ -3,9 +3,10 @@ import os from devbot import environ +from devbot import config -def start(): +def start(rcfile): environ.setup() - user_shell = os.environ.get("SHELL", "/bin/sh") - os.execlp(user_shell, user_shell) + bash_path = "/bin/bash" + os.execlp(bash_path, bash_path, "--rcfile", rcfile) |