Last active
August 29, 2015 14:05
-
-
Save lzcabrera/24ebf0fc17bd543ffdef to your computer and use it in GitHub Desktop.
rbenv commands
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
# 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