Skip to content

Instantly share code, notes, and snippets.

@hassox
Created October 10, 2008 18:58
Show Gist options
  • Save hassox/16127 to your computer and use it in GitHub Desktop.
Save hassox/16127 to your computer and use it in GitHub Desktop.
export PS1='\[\033[01;32m\]\w $(git branch &>/dev/null; if [ $? -eq 0 ]; then echo "\[\033[01;34m\]$(git branch | grep '^*' |sed s/\*\ //)"; fi) \$ \[\033[00m\]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment