# http://rvm.beginrescueend.com/gems/ # Thanks for the awesome idea batasrki 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 }