Replace whitespace with separators in bash prompt
This commit is contained in:
parent
4db3c8d5f9
commit
e1712d710c
4
bashrc
4
bashrc
|
@ -42,11 +42,11 @@ else
|
|||
RED="\e[0;31m"
|
||||
NOCOLOR="\e[m"
|
||||
if [[ -f ~/.config/bash/git-prompt.sh ]]; then
|
||||
GIT_PROMPT="\$(__git_ps1 \"${PURPLE}(${NOCOLOR}%s${PURPLE})${NOCOLOR}\")"
|
||||
GIT_PROMPT="\$(__git_ps1 \"${PURPLE}─(${NOCOLOR}%s${PURPLE})${NOCOLOR}\")"
|
||||
else
|
||||
GIT_PROMPT=''
|
||||
fi
|
||||
PS1="┌\[${PURPLE}[${YELLOW}\u@\h${PURPLE}] [${RED}\w${PURPLE}] [${NOCOLOR}\t${PURPLE}] ${GIT_PROMPT}\]\n└── "
|
||||
PS1="┌\[${PURPLE}[${YELLOW}\u@\h${PURPLE}]─[${NOCOLOR}\w${PURPLE}]─[${NOCOLOR}\t${PURPLE}]${GIT_PROMPT}${NOCOLOR}\]\n└── "
|
||||
unset GIT_PROMPT PURPLE YELLOW RED NOCOLOR
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue