diff --git a/README.md b/README.md index 442e1cdeb..91e110d80 100644 --- a/README.md +++ b/README.md @@ -755,7 +755,7 @@ To see what you have installed (with their version numbers): $ brew list --versions -### Ruby and RVM +### Ruby and rbenv
@@ -766,83 +766,46 @@ To see what you have installed (with their version numbers):
#### Installation
-When installing Ruby, best practice is to use [RVM](https://rvm.io/) (Ruby Version Manager) which allows you to manage multiple versions of Ruby on the same machine. Installing RVM, as well as the latest version of Ruby, is very easy. Just run:
+`brew.sh` provides [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build) which allow you to manage multiple versions of Ruby on the same machine. Installing latest version of Ruby with `rbenv` is very easy.
- $ curl -L https://get.rvm.io | bash -s stable --ruby
+`brew.sh` adds the following line to your `.extra` file to initialize `rbenv`:
-When it is done, both RVM and a fresh version of Ruby 2.0 are installed. The following line was also automatically added to your `.bash_profile`:
-
-```bash
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
```
-
-I prefer to move that line to the `.extra` file, keeping my `.bash_profile` clean. I suggest you do the same.
-
-After that, start a new terminal and run:
-
- $ type rvm | head -1
-
-You should get the output `rvm is a function`.
+eval "$(rbenv init -)"
+```
#### Usage
-The following command will show you which versions of Ruby you have installed:
-
- $ rvm list
-
-The one that was just installed, Ruby 2.0, should be set as default. When managing multiple versions, you switch between them with:
-
- $ rvm use system # Switch back to system install (1.8)
- $ rvm use 2.0.0 --default # Switch to 2.0.0 and sets it as default
-
-Run the following to make sure the version you want is being used (in our case, the just-installed Ruby 1.9.3):
-
- $ which ruby
- $ ruby --version
-
-You can install another version with:
-
- $ rvm install 1.9.3
-
-To update RVM itself, use:
-
- $ rvm get stable
-
-[RubyGems](http://rubygems.org/), the Ruby package manager, was also installed:
+`rbenv` uses `ruby-build` to download, compile, and install new versions of Ruby. You can see all versions available to download and install like so:
- $ which gem
-
-Update to its latest version with:
-
- $ gem update --system
-
-To install a "gem" (Ruby package), run:
-
- $ gem install