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:
parent
e1c3a96e44
commit
3e24ce0e2f
@ -2,10 +2,10 @@
|
|||||||
git_dirty() {
|
git_dirty() {
|
||||||
git diff --ignore-submodules --quiet
|
git diff --ignore-submodules --quiet
|
||||||
if [[ $? == 1 ]]; then
|
if [[ $? == 1 ]]; then
|
||||||
echo "⭑"
|
echo "✱"
|
||||||
else
|
else
|
||||||
git diff --staged --ignore-submodules --quiet
|
git diff --staged --ignore-submodules --quiet
|
||||||
[[ $? == 1 ]] && echo "⭑"
|
[[ $? == 1 ]] && echo "✱"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user