Skip to content

Instantly share code, notes, and snippets.

@lzcabrera
Last active August 29, 2015 14:05
Show Gist options
  • Save lzcabrera/24ebf0fc17bd543ffdef to your computer and use it in GitHub Desktop.
Save lzcabrera/24ebf0fc17bd543ffdef to your computer and use it in GitHub Desktop.
rbenv commands
# list all available versions:
$ rbenv install -l
# install a Ruby version:
$ rbenv install 2.0.0-p247
# set/unset local
$ rbenv local 1.9.3-p327
$ rbenv local --unset
# set global
$ rbenv global 1.8.7-p352
# Lists all Ruby versions known to rbenv, and shows an asterisk next to the currently active version.
$ rbenv versions
# Installs shims for all Ruby executables known to rbenv (i.e., ~/.rbenv/versions/*/bin/*). Run this command after you install a new version of Ruby, or install a gem that provides commands.
$ rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment