Skip to content

Instantly share code, notes, and snippets.

@mmiliaus
Created November 20, 2012 11:22
Show Gist options
  • Save mmiliaus/4117373 to your computer and use it in GitHub Desktop.
Save mmiliaus/4117373 to your computer and use it in GitHub Desktop.
GREEN=`tput setf 2`
WHITE=`tput setf 7`
PS1="\u:\w\$(git branch 2>/dev/null | grep -e '\* ' | sed 's/^..\(.*\)/\[$GREEN\]{\1}/') \[$WHITE\]\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment