Skip to content

Instantly share code, notes, and snippets.

@harrifeng
Created June 30, 2014 07:20
Show Gist options
  • Save harrifeng/0af2bdf940e9462ca2e4 to your computer and use it in GitHub Desktop.
Save harrifeng/0af2bdf940e9462ca2e4 to your computer and use it in GitHub Desktop.
Understand the rvm usage. rvm --default use 1.9.3 will set 1.9.3 as default. You can use other ruby version by 'use', but you can always go back to default by rvm default
hfeng@ubuntu-rvm-ct:~$ rvm list
rvm rubies
ruby-1.9.3-p547 [ x86_64 ]
=* ruby-2.1.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
hfeng@ubuntu-rvm-ct:~$ rvm use 1.9.3
Using /home/hfeng/.rvm/gems/ruby-1.9.3-p547
hfeng@ubuntu-rvm-ct:~$ rvm list
rvm rubies
=> ruby-1.9.3-p547 [ x86_64 ]
* ruby-2.1.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
hfeng@ubuntu-rvm-ct:~$ rvm default
hfeng@ubuntu-rvm-ct:~$ rvm list
rvm rubies
ruby-1.9.3-p547 [ x86_64 ]
=* ruby-2.1.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
hfeng@ubuntu-rvm-ct:~$ rvm --default use 1.9.3
Using /home/hfeng/.rvm/gems/ruby-1.9.3-p547
hfeng@ubuntu-rvm-ct:~$ rvm list
rvm rubies
=* ruby-1.9.3-p547 [ x86_64 ]
ruby-2.1.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment