Skip to content

Instantly share code, notes, and snippets.

@wayneeseguin
Created September 9, 2009 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wayneeseguin/183418 to your computer and use it in GitHub Desktop.
Save wayneeseguin/183418 to your computer and use it in GitHub Desktop.
# rvm 'gemdir' function, easily switch between any ruby's gem directory.
function gemdir {
if [ -z "$1" ] ; then
echo "gemdir expects a parameter, which should be a valid rvm ruby selector"
else
rvm use $1
cd `rvm gemdir`
pwd
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment