1
0
Fork 0
mirror of https://github.com/sbrl/bin.git synced 2018-01-10 21:33:46 +00:00

Correct bash prompt

This commit is contained in:
Starbeamrainbowlabs 2016-01-15 19:20:30 +00:00
parent 61a387abac
commit 05ba677c7c

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