Skip to content

Instantly share code, notes, and snippets.

View eneuhauser's full-sized avatar

Eric Neuhauser eneuhauser

  • C2FO
  • Kansas City
View GitHub Profile
@eneuhauser
eneuhauser / gist:6270957
Last active December 21, 2015 07:28
Current GIT Status
function parse_git_deleted {
[[ $(git status 2> /dev/null | grep deleted:) != '' ]] && echo '-'
}
function parse_git_added {
[[ $(git status 2> /dev/null | grep 'Untracked files:') != '' ]] && echo '+'
}
function parse_git_modified {
[[ $(git status 2> /dev/null | grep modified:) != '' ]] && echo '*'
}
function parse_git_dirty {