Skip to content

Instantly share code, notes, and snippets.

View neilholcomb's full-sized avatar

Neil Holcomb neilholcomb

  • Oakdale Ca
  • 20:33 (UTC -12:00)
View GitHub Profile
# If the current directory is a git repository, this displays [branch_name] and,
# if there are uncommitted changes, an asterisk.
# Example:
# ~/projects/my_project[master*]:
# I should also point out this uses my own hot pink & teal shell colour scheme (best viewed on white background).
# Change the colours if you don't like pretty things.
function parse_git_dirty {