1
0
Fork 0

Correct bash prompt

This commit is contained in:
Starbeamrainbowlabs 2016-01-15 19:20:30 +00:00
parent 61a387abac
commit 05ba677c7c
1 changed files with 6 additions and 1 deletions

View File

@ -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