1
0
Fork 0

Fix $ sign not changing into #

This commit is contained in:
Starbeamrainbowlabs 2016-01-15 21:06:12 +00:00
parent 05ba677c7c
commit 6e49c467dc
1 changed files with 6 additions and 1 deletions

View File

@ -92,7 +92,12 @@ prompt_colon()
set_bash_prompt()
{
PS1="${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\H\[\033[00m\]$(prompt_colon)\[\033[01;34m\]\w\[\033[00m\]\$ "
PS1="${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\H\[\033[00m\]$(prompt_colon)\[\033[01;34m\]\w\[\033[00m\]"
if [[ "$UID" = 0 ]]; then
PS1="${PS1}# "
else
PS1="${PS1}\$ "
fi
}
# https://help.ubuntu.com/community/CustomizingBashPrompt