Before marking this as duplicate let me explain:
When running rvm 2.5.3 do ruby -v
, everything works well:
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin17]
e.g. ruby -v
gives ruby 2.7.0dev (2019-03-18 trunk 67296) [x86_64-darwin17]
But when running ruby -e "system('rvm 2.5.3 do ruby -v')"
I get the big old Warning! PATH is not properly set up
message (even though it executes correctly).
Solution was to add set -gx PATH $HOME/.rvm/bin $PATH
to my ~/.config/fish/config.fish
.
Hope it helps others.