Requirement: you should be using macports
If you already installed git-core, you should first do this:
sudo port clean git-core
Then run this:
sudo port install git-core +bash_completion
This will recompile git and install the script required for completion.
This process should take a couple of minutes.
When it's over, edit your ~/.profile file and add the following:
source /opt/local/etc/bash_completion
Now open a new terminal window and try it!
You now have tab completion for the commands and branches. Like a boss.
Go on, thank me.
No comments:
Post a Comment