Skip to content

Instantly share code, notes, and snippets.

@bserem
Last active August 29, 2015 13:56
Show Gist options
  • Save bserem/8954774 to your computer and use it in GitHub Desktop.
Save bserem/8954774 to your computer and use it in GitHub Desktop.
Bash: Verbose GIT branch
# verbose git branch on bash PS1
# get accompaning script with this command:
# curl https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh > ~/.bash_git
if [ -f ~/.bash_git ]; then
source ~/.bash_git
export PS1='[\u@\h \W$(__git_ps1 ":%s")]\$ '
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment