[Ruby] How to Configure RVM Ruby Version for Default Use

Tadashi Shigeoka ·  Wed, October 19, 2011

I configured RVM Ruby version for default use.

The Ruby version initially installed on Mac is 1.8.7.

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

I have Ruby version 1.9.2 installed separately with rvm, but it’s tedious to run the rvm use command every time I start the terminal.

By running the rvm use command with the —default option, you can use the specified Ruby version by default from then on.

$ rvm use 1.9.2 --default
Using /Users/codenote_mac/.rvm/gems/ruby-1.9.2-p290

That’s all.

【Reference】

RVMのRubyをデフォルトで使用したい - @sugamasao.blog.title # => “コードで世界を変えたい” (Want to Use RVM Ruby by Default - @sugamasao.blog.title # => “Want to Change the World with Code”)

That’s all from the Gemba.