Update colors of bash prompt

It's more similar to the ZSH prompt now.
This commit is contained in:
Daniel - 2020-08-22 16:49:01 +02:00
parent 2bf8c6a932
commit 86ded865f6
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

@ -49,11 +49,11 @@ else
YELLOW="\e[0;32m"
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}─(${YELLOW}%s${PURPLE})${NOCOLOR}\")"
else
GIT_PROMPT=''
fi
PS1="┌\[${PURPLE}[${YELLOW}\u@\h${PURPLE}]─[${NOCOLOR}\w${PURPLE}]─[${NOCOLOR}\t${PURPLE}]${GIT_PROMPT}${NOCOLOR}\]\n└── "
PS1="┌\[${PURPLE}[${NOCOLOR}\u@\h${PURPLE}]─[${NOCOLOR}\w${PURPLE}]─[${NOCOLOR}\t${PURPLE}]${GIT_PROMPT}${NOCOLOR}\]\n└── "
unset GIT_PROMPT PURPLE YELLOW RED NOCOLOR
fi