remove extra parentheses

This commit is contained in:
James Dixon 2022-08-10 04:10:47 -04:00
parent 5a1505e7ae
commit e5e6b2131e

View File

@ -220,7 +220,7 @@ git_prompt() {
if [ ! -z $BRANCH ]; then
printf "%s" "%F{reset}%F{yellow}$BRANCH"
printf "%s" "%F{reset}["
if echo "${STATUS}" | grep -c "nothing to commit" &> /dev/null; then printf "(%s)" "%F{blue}="; fi
if echo "${STATUS}" | grep -c "nothing to commit" &> /dev/null; then printf "%s" "%F{blue}="; fi
if echo "${STATUS}" | grep -c "renamed:" &> /dev/null; then printf "%s" "%F{red}%"; fi
if echo "${STATUS}" | grep -c "deleted:" &> /dev/null; then printf "%s" "%F{red}-"; fi
if echo "${STATUS}" | grep -c "new file:" &> /dev/null; then printf "%s" "%F{green}+"; fi