Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created January 11, 2009 13:48
Show Gist options
  • Save jugyo/45701 to your computer and use it in GitHub Desktop.
Save jugyo/45701 to your computer and use it in GitHub Desktop.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
export PS1='\[\033\e[34m\]\w \[\033\e[33m\]$(parse_git_branch)\[\033\e[0m\]: '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment