Balaji Vajjala's Blog

A DevOps Blog from Trenches

SVN bash_completion - Subversion productivity boost

Remembering all the svn switches / CLI options, not necessary, well unless you are using some nifty GUI tool you will definitely need this one.

Just google “Subversoin bash completion” and you will find yourself here

so grab is, source it and use it:

1
2
apt-get install bash-completion
wget http://worksintheory.org/files/misc/bash_completion_svn -O /etc/bash_completion.d/subversion

You are good to go.

Please note: Installing the bash_completion deb package adds a bunch of bash completion helpers see full list by running:

1
dpkg -L bash-completion

All the magic however is in this short file: /etc/profile.d/bash_completion.sh and anything you place under /etc/bash_completion.d/ will automatically be sourced upon login …