Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@osuka
Created September 2, 2011 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osuka/1189374 to your computer and use it in GitHub Desktop.
Save osuka/1189374 to your computer and use it in GitHub Desktop.
How to add bash git completion on Mac OS X
Download and install an official git from http://git-scm.com/
It already includes the bash completion script.
Add this to your .bash_profile:
source /usr/local/git/contrib/completion/git-completion.bash
PS1='[\u@\h \w$(__git_ps1 " (%s)")]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment