mirror of
https://github.com/sbrl/bin.git
synced 2018-01-10 21:33:46 +00:00
Fix $ sign not changing into #
This commit is contained in:
parent
05ba677c7c
commit
6e49c467dc
1 changed files with 6 additions and 1 deletions
7
.bashrc
7
.bashrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue