Wednesday, April 10, 2013

git autocomplete on Mac OS X

I use a variety both Linux and OSX in my work. Since my recent adoption of git, I have been mostly logged in to our Linux box and had been enjoying the awesome git autocomplete features in bash. When I switched to my Mac though, I couldn't get this work - but my pinky refused to stop pressing the tab key.

Luckily, the folks at git have an autocomplete script ready to install on your machine. Here's what you have to do:
curl -o ~/.git-completion.bash
echo "source ~/.git-completion.bash" >> ~/.bash_profile

and Voila!

Thanks to Mike Pottyn for this:

Cite as:
Saad, T. "git autocomplete on Mac OS X". Weblog entry from Please Make A Note.