Skip to content

Instantly share code, notes, and snippets.

View Seanstoppable's full-sized avatar

Sean Smith Seanstoppable

View GitHub Profile
# * 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 "*"
}