Skip to content

Instantly share code, notes, and snippets.

@fehrenbach
Created May 18, 2013 08:17
Show Gist options
  • Select an option

  • Save fehrenbach/5603707 to your computer and use it in GitHub Desktop.

Select an option

Save fehrenbach/5603707 to your computer and use it in GitHub Desktop.
#Colorful prompt, shows current git branch
PS1='\[\033[01;32m\]\u\[\033[00m\]@\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[0;36m\]`git branch 2>/dev/null|cut -f2 -d\* -s`\[\033[00m\]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment