RVM default is 2.1.1 but 2.1.2 is loaded initially

2019-08-07 06:50发布

问题:

When I run rvm list I get the following:

rvm rubies

ruby-1.9.2-p318 [ x86_64 ]
ruby-1.9.3-head [ x86_64 ]
ruby-1.9.3-p125 [ x86_64 ]
ruby-1.9.3-p484 [ x86_64 ]
ruby-2.0.0-p353 [ x86_64 ]

=* ruby-2.1.1 [ x86_64 ]

Which would make me think that 2.1.1 is my default ruby version. However, when I open a new terminal window and run ruby -v I get

ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]

My .bash_profile doesn't do anything besides setting $PATH and a few other variables so I cannot understand why this is being set as such. Reason this is such an issue is that I have a Rakefile which loads my automation framework and I'd rather not specify setting the ruby version in that.