Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-23 18:29:55 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-23 18:32:14 (GMT)
commit8956a666c3fb455de4cdb167611bc478e20948da (patch)
tree0fd9973cfcbf627e6cd3e67ed3375309bf679d94 /devbot
parent9c186e63e71ea79609d460a03df8327b699c7dbf (diff)
Fix shell prompt string on ubuntu
It was getting overwritten by ~/.bashrc
Diffstat (limited to 'devbot')
-rw-r--r--devbot/environ.py1
-rw-r--r--devbot/shell.py7
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)