This is because out of the box Ruby installed through RVM are not added to your path. When you run any RVM command, it adds the paths to the ruby version you are using to $ PATH. RVM seems to care about bash and zsh, but does not have built-in support to fix the paths for your point files.
Here is an example of my path before the RVM command:
/Users/grant/pear/bin /usr/local/sbin/ /Users/grant/.rvm/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/local/git/bin /usr/local/go/bin
Here is an example of my path after running 'rvm':
/Users/grant/.rvm/gems/ruby-2.2.0/bin /Users/grant/.rvm/gems/ ruby-2.2.0@global /bin /Users/grant/.rvm/rubies/ruby-2.2.0/bin /Users/grant/pear/bin /usr/local/sbin/ /Users/grant/.rvm/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/local/git/bin /usr/local/go/bin
The bottom line is that you will want to add .rvm files to your path depending on the version by default of which you are by default. This post helped me figure out how to do this. You can add the paths that RVM adds to your fish profile:
set -g -x PATH $PATH <paths_to_add>
Example above:
set -g -x PATH $PATH /Users/grant/.rvm/gems/ruby-2.2.0/bin /Users/grant/.rvm/gems/ ruby-2.2.0@global /bin /Users/grant/.rvm/rubies/ruby-2.2.0/bin
To have this run every time you load the fish, add the above command to ~ / .config / fish / config.fish. Alternatively, you can add the rvm command to your fish configuration and download it for you.
Hope this helps! -Grant
grant
source share