Skip to content

Instantly share code, notes, and snippets.

@jbradforddillon
Created April 3, 2013 15:45
Show Gist options
  • Save jbradforddillon/5302387 to your computer and use it in GitHub Desktop.
Save jbradforddillon/5302387 to your computer and use it in GitHub Desktop.
Stick it in your .bash_profile
if [ -f ~/.git-prompt.sh ]; then
. ~/.git-prompt.sh
fi
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWSTASHSTATE=true
GIT_PS1_SHOWUNTRACKEDFILES=true
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
#PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[01;31m\]$(__git_ps1)\[\033[00m\]\$ '
PS1="\[\033[32m\]\u@\h\[\033[00m\]:\[\033[31m\]\W\[\033[00m\]\[\033[36m\]\$(__git_ps1)\[\033[00m\]\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment