Last active
August 29, 2015 14:01
-
-
Save henriquegogo/1baa7569c0fb78f8c144 to your computer and use it in GitHub Desktop.
Show git branch on commandline path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download this file https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh to ~/.git-prompt.sh | |
source ~/.git-prompt.sh | |
export PS1='\[\e[1;33m\]'$PS1'\[\e[1;32m\]$(__git_ps1 "(%s) ")\[\e[m\]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment