Replace whitespace with separators in bash prompt

This commit is contained in:
Daniel - 2020-07-25 17:08:19 +02:00
parent 4db3c8d5f9
commit e1712d710c
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 2 additions and 2 deletions

4
bashrc
View File

@ -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