Skip to content

Instantly share code, notes, and snippets.

@eremv
Forked from xarimanx/gist:1800759
Created May 21, 2013 13:55
Show Gist options
  • Save eremv/5619951 to your computer and use it in GitHub Desktop.
Save eremv/5619951 to your computer and use it in GitHub Desktop.
sudo port install git-core +bash_completion
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
GIT_PS1_SHOWDIRTYSTATE=true
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;33m\]\w\[\033[00m\]\[\033[01;31m\]$(__git_ps1 " {%s}")\[\033[00m\]\$ '
brew:
Install homebrew
Install Git and bash-completion: brew install git bash-completion
Add bash-completion to your .bash_profile:
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment