1
0
Fork 0
forked from wezm/wezm.net
wezm.net/content/technical/2009/03/bash-git-completion-with-mac-ports.html
2010-03-12 07:30:27 +11:00

5 lines
No EOL
560 B
HTML

Git comes with bash completion support which comes in handy for completing branch names and things like that. To get this support when installing git via Mac Ports you must add the bash_completion variant. You'll also want to install the bash_completion port. After that you need to add the following to your ~/.bashrc file:<pre>if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi</pre>
For reference I have the folloowing Git related config in my <code>.bashrc</code>:
<script src="http://gist.github.com/87724.js"></script>