more updates

This commit is contained in:
Solomon Laing 2022-06-04 17:35:27 +09:30
parent 4622ef55f9
commit 7ad495bd05

View File

@ -2,10 +2,9 @@
if git status &>/dev/null; then
branch=$(git branch --show-current)
if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
echo "($branch~)"
else
echo "($branch*)"
else
echo "($branch~)"
fi
fi