RVM 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:
The next time you open a window Ruby 2.1.1 will be the selected ruby.
To switch back to your system ruby:
To switch at any time to the ruby you have selected as default:
To show what ruby is currently the selected default, if any, do:
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.
Note that “default” is merely implemented as an alias with an especially significant name.
If you encounter an error such as “RVM is not a function, selecting rubies with ‘rvm use …’ will not work.”, try using the alias action instead:
comments powered by Disqus