Fix bash prompt to show git status correctly
This commit is contained in:
parent
8e85e8b074
commit
899676b529
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user