Fix bash prompt to show git status correctly

This commit is contained in:
Buddy Sandidge 2020-12-17 23:30:14 -08:00
parent 8e85e8b074
commit 899676b529

View File

@ -41,7 +41,7 @@ function parse_git_status {
return return
fi fi
if [[ $(git status 2> /dev/null | grep -c "working tree|directory clean") -eq 0 ]]; then if [[ $(git status 2> /dev/null | grep -c "working tree clean") -eq 0 ]]; then
echo ' ∓' echo ' ∓'
fi fi
} }