From 8956a666c3fb455de4cdb167611bc478e20948da Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 23 Nov 2012 18:29:55 +0000 Subject: Fix shell prompt string on ubuntu It was getting overwritten by ~/.bashrc --- (limited to 'devbot') 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) -- cgit v0.9.1