Skip to content

Instantly share code, notes, and snippets.

@thommay
Created February 23, 2012 12:55
Show Gist options
  • Save thommay/1892698 to your computer and use it in GitHub Desktop.
Save thommay/1892698 to your computer and use it in GitHub Desktop.
12:54 ~/code/baton % cat ~/.zsh/lib/rb
rbb() {
if [ -z "$1" ]; then
echo "Usage: rbb <ruby version>"
echo "Available versions are:"
ruby-build --definitions
return 1
fi
ver=$1
ruby-build $ver ~/.rbenv/versions/$ver
rbenv rehash
hash -r
}
gem() {
~/.rbenv/shims/gem $*
rbenv rehash
hash -r
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment