Created
September 9, 2009 02:33
-
-
Save wayneeseguin/183418 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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