Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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