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:
parent
61a387abac
commit
05ba677c7c
1 changed files with 6 additions and 1 deletions
7
.bashrc
7
.bashrc
|
@ -90,6 +90,11 @@ prompt_colon()
|
||||||
fi
|
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
|
# https://help.ubuntu.com/community/CustomizingBashPrompt
|
||||||
# Was [01;32m;
|
# Was [01;32m;
|
||||||
if [ "$color_prompt" = yes ]; then
|
if [ "$color_prompt" = yes ]; then
|
||||||
|
@ -99,7 +104,7 @@ if [ "$color_prompt" = yes ]; then
|
||||||
# PROMPT_COLON=$(echo -e "\033[31m:\033[0m")
|
# PROMPT_COLON=$(echo -e "\033[31m:\033[0m")
|
||||||
#fi
|
#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
|
else
|
||||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue