From 05ba677c7ce2426948444f32453f3f2edd2830e9 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 15 Jan 2016 19:20:30 +0000 Subject: [PATCH] Correct bash prompt --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index efd246a..2160162 100644 --- a/.bashrc +++ b/.bashrc @@ -90,6 +90,11 @@ prompt_colon() fi } +set_bash_prompt() +{ + PS1="${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\H\[\033[00m\]$(prompt_colon)\[\033[01;34m\]\w\[\033[00m\]\$ " +} + # https://help.ubuntu.com/community/CustomizingBashPrompt # Was [01;32m; if [ "$color_prompt" = yes ]; then @@ -99,7 +104,7 @@ if [ "$color_prompt" = yes ]; then # PROMPT_COLON=$(echo -e "\033[31m:\033[0m") #fi - PS1="${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\H\[\033[00m\]$(prompt_colon)\[\033[01;34m\]\w\[\033[00m\]\$ " + PROMPT_COMMAND=set_bash_prompt else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi