Skip to content

Instantly share code, notes, and snippets.

@grahamgilchrist
Created August 21, 2013 16:39
Show Gist options
  • Save grahamgilchrist/6296865 to your computer and use it in GitHub Desktop.
Save grahamgilchrist/6296865 to your computer and use it in GitHub Desktop.
git prompt
#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