From e9bbe12ca09cd3d380ba5d8bb7987f8976b7cc5c Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sat, 13 Dec 2014 11:39:02 +0100 Subject: [PATCH] More clean prompt when in a chroot (like crouton) --- .bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 0ba1091..649b9e8 100644 --- a/.bashrc +++ b/.bashrc @@ -111,13 +111,13 @@ set_bash_prompt(){ PROMPT_SYMBOL='$' if [ $USER = 'root' ]; then #PS1="$YELLOW\t $RED\u$BLACK@\h:\W# " - PS1="${debian_chroot:+($debian_chroot)}$(venvinfo)$YELLOW\t $RED\u$BLACK@\h:\W$(jobscount)# " + PS1="${debian_chroot:+$debian_chroot }$(venvinfo)$YELLOW\t $RED\u$BLACK@\h:\W$(jobscount)# " elif [ -e ~/.dot_is_server ]; then #PS1="$YELLOW\t $GREEN\u$BLACK@\h:\W$ " - PS1="${debian_chroot:+($debian_chroot)}$(venvinfo)$YELLOW\t $GREEN\u$BLACK@\h:\W$(jobscount)$ " + PS1="${debian_chroot:+$debian_chroot }$(venvinfo)$YELLOW\t $GREEN\u$BLACK@\h:\W$(jobscount)$ " else #PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$ " - PS1="${debian_chroot:+($debian_chroot)}$(venvinfo)$YELLOW\t $BLUE\u$BLACK@\h:\W$(jobscount)$ " + PS1="${debian_chroot:+$debian_chroot }$(venvinfo)$YELLOW\t $BLUE\u$BLACK@\h:\W$(jobscount)$ " fi #PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$(hg_ps1)$ " #PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$(hg_ps1)$(__git_ps1)$ "