1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Update git status symbol

This commit is contained in:
Daniel Barber 2017-06-05 20:17:22 +01:00
parent e1c3a96e44
commit 3e24ce0e2f

View File

@ -2,10 +2,10 @@
git_dirty() {
git diff --ignore-submodules --quiet
if [[ $? == 1 ]]; then
echo ""
echo ""
else
git diff --staged --ignore-submodules --quiet
[[ $? == 1 ]] && echo ""
[[ $? == 1 ]] && echo ""
fi
}