Skip to content

Instantly share code, notes, and snippets.

@ersatzryan
Created February 3, 2011 21:39
Show Gist options
  • Save ersatzryan/810266 to your computer and use it in GitHub Desktop.
Save ersatzryan/810266 to your computer and use it in GitHub Desktop.
function __git_dirty {
git diff --quiet HEAD &>/dev/null
[ $? == 1 ] && echo "!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment