Unable to get RVM to switch rubies

How can I explicitly point my fish shell to the RVM version of rubies?

I use a shell and I installed RVM. However, no matter what I do, RVM does not want to switch rubies.

rvm rubies

=* ruby-2.3.0 [ x86_64 ]

> ruby -v                                                             
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]

> rvm use ruby-2.3.0
Using /Users/.../.rvm/gems/ruby-2.3.0

> ruby -v                                                             
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]

my config.fish file contains: rvm default

What am I doing wrong here?

UPDATE:

> which ruby                                                                                                                                         
/usr/bin/ruby

which -a ruby                                                                                                                                      
/usr/bin/ruby

echo $PATH                                                                                                                                         
/usr/local/bin /usr/bin /bin /usr/sbin /sbin

It seems that the path may be wrong, but I am not sure and do not know how to fix it.

EDIT 2:

Now I have changed the path, but it still does not work:

> echo $PATH                                                          
/Users/.../.rvm/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin
+4
source share
1 answer

Perhaps this is a silly observation, but after installing from github:

curl -L --create-dirs -o ~/.config/fish/functions/rvm.fish https://raw.github.com/lunks/fish-nuggets/master/functions/rvm.fish

You have configured rum defaul as follows:

echo "rvm default" >> ~/.config/fish/config.fish
0
source

Source: https://habr.com/ru/post/1677589/


All Articles