Skip to content

Instantly share code, notes, and snippets.

@practice
Created November 8, 2013 07:10
Show Gist options
  • Save practice/7367344 to your computer and use it in GitHub Desktop.
Save practice/7367344 to your computer and use it in GitHub Desktop.
git branch promt
export PS1='\h:\w`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\[\033[37m\]$\[\033[00m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment