Skip to content

Instantly share code, notes, and snippets.

@jaz303
Created September 28, 2010 12:05
Show Gist options
  • Save jaz303/600861 to your computer and use it in GitHub Desktop.
Save jaz303/600861 to your computer and use it in GitHub Desktop.
# change to gem dir for current ruby/gemset
function cdgem {
cd $(rvm gemdir)/gems
cd $(ls | grep $1 | sort | tail -1)
}
# edit gem for current ruby/gemset
function egem {
cd $(rvm gemdir)/gems
mate $(ls | grep $1 | sort | tail -1)
cd -
}
# quickly change to ruby/gemset
# eg: r ree rails3
function r {
rvm use $1
rvm gemset use $2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment