Recommend
If you like my work with RVM, please recommend me *with a comment as to why you recommend me* on
Working With Rails – Thank You!
IRC
I am 'wayneeseguin' in #rvm on irc.freenode.net
If I do not respond right away, leave a message and I'll respond or leave you a memo when I am around.
Sponsors
$ rvm help # Documentation Index

Setting the default Ruby

If you would like to make one specific Ruby be the default ruby that is selected when you open a new terminal shell, use the --default flag:

$ rvm --default use 1.9.2

$ ruby -v

ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]

The next time you open a window Ruby 1.9.2 will be the selected ruby.

To switch back to your system ruby:

$ rvm use system

$ ruby -v

ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

To switch at any time to the ruby you have selected as default:

$ rvm default

$ ruby -v

ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]

To show what ruby is currently the selected default, if any, do

$ rvm list default

Default Ruby (for new shells)

   ruby-1.9.2-p0 [ x86_64 ]

If you wish to switch back to your system ruby as default, remember that RVM does not "manage" the system ruby and is "hands off".

This means to set the "system" ruby as default, you reset RVM's defaults as follows.

$ rvm reset

RVM Documentation Index