Created
August 21, 2013 16:39
-
-
Save grahamgilchrist/6296865 to your computer and use it in GitHub Desktop.
git prompt
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
#Add git branch to terminal | |
#Git prompt | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export GIT_PS1_SHOWUNTRACKEDFILES=1 | |
GREEN="\[\033[0;32m\]" | |
WHITE="\[\033[0;37m\]" | |
YELLOW="\[\033[0;33m\]" | |
PS1="$GREEN\u$WHITE@$GREEN\h $WHITE\W$YELLOW\$(__git_ps1)$YELLOW\$(parse_hg_branch)$WHITE: " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment