Update colors of bash prompt
It's more similar to the ZSH prompt now.
This commit is contained in:
parent
2bf8c6a932
commit
86ded865f6
4
bashrc
4
bashrc
|
@ -49,11 +49,11 @@ else
|
||||||
YELLOW="\e[0;32m"
|
YELLOW="\e[0;32m"
|
||||||
NOCOLOR="\e[m"
|
NOCOLOR="\e[m"
|
||||||
if [[ -f ~/.config/bash/git-prompt.sh ]]; then
|
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
|
else
|
||||||
GIT_PROMPT=''
|
GIT_PROMPT=''
|
||||||
fi
|
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
|
unset GIT_PROMPT PURPLE YELLOW RED NOCOLOR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue