Skip to content

Instantly share code, notes, and snippets.

@bpoweski
Created February 15, 2010 16:52
Show Gist options
  • Save bpoweski/304783 to your computer and use it in GitHub Desktop.
Save bpoweski/304783 to your computer and use it in GitHub Desktop.
source ~/bin/git-completion.sh
parse_git_branch (){
git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)# (git::\1)#'
}
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\033[0;35m\]\h \[\033[0;33m\]\w\[\033[00m\]\[\033[01;00m\]$(__git_ps1):'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment