Speedy Google-Code Checkout
September 22nd, 2008
Here’s a handy bash shortcut for automatically checking out a google-code project.
# SVN ALIASES
export GOOGLE_CODE_CHECKOUTS="$HOME/Code/trunks"
gcco () {
svn checkout http://$@.googlecode.com/svn/trunk/ $GOOGLE_CODE_CHECKOUTS/$@
}
Update: You should use $HOME instead of ~, as the latter would create a ~ directory in your current working directory which can lead to dire results when you attempt to rm -rf ~ :(
Comments are disabled. If that bothers you, please contact me on twitter at @justinlilly and let me know.