Skip to content

Instantly share code, notes, and snippets.

@johanneserhardt
Created November 20, 2012 13:44
Show Gist options
  • Save johanneserhardt/4118007 to your computer and use it in GitHub Desktop.
Save johanneserhardt/4118007 to your computer and use it in GitHub Desktop.
Shows branch name.
export PS1="\W \e[0;36m(\e[0;32m\$(git branch 2>/dev/null | grep -e '\*' | sed s/\*//g)\e[0;36m ):\e[0m "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment