Created
October 3, 2011 08:00
-
-
Save oleksiilevzhynskyi/1258663 to your computer and use it in GitHub Desktop.
How to get git-completion.bash to work 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
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\]\$ ' |
aratak
commented
Oct 3, 2011
- Install homebrew
- Install Git and bash-completion: brew install git bash-completion
- Add bash-completion to your .bash_profile:
Thanks @aratak that worked for me!
worked here too... Thanks @aratak
Not for me. Can anyone help?
Thank you!It works @aratak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment