Bash Completion

Some of these steps were taken from here: http://justamemo.com/2009/02/09/bash-completion-along-with-svn-and-git-tab-completion/

I used MacPorts to install bash-completion:

sudo port install bash-completion

Save the following http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/bash_completion

to /opt/local/etc/bash_completion.d/svn-completion.sh

Add the following to .bash_profile or .profile as appropriate.

# for bash-completion
if [ -f /opt/local/etc/bash_completion ]; then
    . /opt/local/etc/bash_completion
fi
source /opt/local/etc/bash_completion.d/svn-completion.sh
source /opt/local/etc/bash_completion.d/git-completion.sh

Now restart your Terminal.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s