Created
September 2, 2011 18:17
-
-
Save osuka/1189374 to your computer and use it in GitHub Desktop.
How to add bash git completion on Mac OS X
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
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