installing rvm with homebrew

Shell
curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails

Source

Also in Shell: