Created
May 22, 2014 20:10
-
-
Save jsbalsera/622e758d4bde73fe6f3b to your computer and use it in GitHub Desktop.
Configuring PS1 to show git branch and status
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
export GIT_PS1_SHOWDIRTYSTATE=true | |
export GIT_PS1_SHOWUNTRACKEDFILES=true | |
export GIT_PS1_SHOWSTASHSTATE=true | |
export PS1='\[\033[1;34m\]\u\[\033[0;30m\]@\[\033[0;32m\]\w\[\033[0;30m\]$(__git_ps1 " [\[\e[31;1m\]%s\[\e[0m\]]")\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment