forgot escape characters for git prompt.

This commit is contained in:
2023-01-09 23:50:54 +00:00
parent b149449ff3
commit 1b4fb8730f
+1 -1
View File
@@ -179,7 +179,7 @@ case $add_style in
# ABS prompt color
if [ "$(type -t __git_ps1)" == 'function' ]; then
PS1='\[\e[32m\]\u\[\e[m\]@\[\e[36m\]\h\[\e[m\]:\[\e[33m\]\w\[\e[m\]$(__git_ps1 "\e[m\](\e[35m\]%s\e[m\])")\e[m\]\\$ '
PS1='\[\e[32m\]\u\[\e[m\]@\[\e[36m\]\h\[\e[m\]:\[\e[33m\]\w\[\e[m\]$(__git_ps1 "\[\e[m\](\[\e[35m\]%s\[\e[37m\])")\[\e[m\]\\$ '
else
PS1="\[\e[32m\]\u\[\e[m\]@\[\e[36m\]\h\[\e[m\]:\[\e[33m\]\w\[\e[m\]\\$ "
fi