I used RVM to install Ruby 2.5.1, and set that to the default. However when I open a new terminal window, and type which ruby
I get the path to my machine's Ruby not the one I set.
For example, when I set the default and run which ruby
:
=> /home/COM-COM/.rvm/rubies/ruby-2.5.1/bin/ruby
When I open a new terminal window and run which ruby
:
=> /usr/bin/ruby
I thought when I ran rvm --default use 2.5.1
RVM would remember the set default until I changed it.
Does anyone know what's going on here, and does anyone have a solution?