Why? @sstephenson explains it best here.
This should get rid of the rvm dir and any installed rubies:
$ rvm implode
$ gem uninstall rvm
$ rm ~/.rvmrc
$ rm /etc/rvmrc
Remove anything RVM-related from your PATH in:
.profile
.bash_profile
.bashrc
Using homebrew:
$ brew update
$ brew install rbenv ruby-build
# list all available versions:
$ rbenv install -l
# install a Ruby version:
$ rbenv install 2.0.0-p247
Note: if you install a new version of ruby or a new gem and something isn't working, run $ rbenv rehash
There are two easy ways of switching versions.
Lots of ruby projects (including sassquatch) include a .ruby-version
file. This file tells rbenv which ruby version to use for the directory.
# show versions currently installed and indicate current version
$ rbenv versions
# set ruby version for a specific dir
$ rbenv local 1.9.3-p327
# set ruby version globally
$ rbenv global 1.9.3-p327
You should install the bundler
gem because it's a nice way to manage gem dependencies in a project. For example, here's the Gemfile in sassquatch that bundler uses to manage gem dependencies for the projcet.
$ sudo gem install bundler
Thanks @AustineA
fwiw in Zsh: