This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# * uncommitted changes | |
# ^ stashed changes | |
# > ahead of origin | |
# < behind origin | |
# ↕ diverged from origin | |
function parse_git_dirty() { | |
[[ -n $(echo $1 | grep 'nothing to commit (working directory clean)' 2> /dev/null) ]] && echo "*" | |
} |