Skip to content

Instantly share code, notes, and snippets.

@batasrki
Forked from wayneeseguin/gist:183418
Created September 9, 2009 03:43
Show Gist options
  • Save batasrki/183460 to your computer and use it in GitHub Desktop.
Save batasrki/183460 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