Skip to content

Instantly share code, notes, and snippets.

View jeremymouton's full-sized avatar

Jeremy Mouton jeremymouton

View GitHub Profile
@jeremymouton
jeremymouton / bash_profile_branch
Created January 18, 2013 05:09
Display working Git branch
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\w\$(parse_git_branch) $ "