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:
and Voila!
Thanks to Mike Pottyn for this: http://railslove.com/blog/2011/11/25/git-autocomplete-in-bash-on-a-mac
curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash echo "source ~/.git-completion.bash" >> ~/.bash_profile
and Voila!
Thanks to Mike Pottyn for this: http://railslove.com/blog/2011/11/25/git-autocomplete-in-bash-on-a-mac
Cite as:
Saad, T. "git autocomplete on Mac OS X".
Weblog entry from
Please Make A Note.
http://pleasemakeanote.blogspot.com/2013/04/git-autocomplete-on-mac-os-x.html