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