How to make fish shell use an rvm ruby by default
I think to make it easier, you can add a [rvm] 2 plugin to fish shell via [fisher] 1.
For install fisher:
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher
After, install rvm plugin for Fish Shell:
fisher add jorgebucaran/fish-nvm
After that, rvm runs perfect.
(was fisher rvm
previously)
Firstly install rvm fish functions from rvm.io
curl -L --create-dirs -o ~/.config/fish/functions/rvm.fish https://raw.github.com/lunks/fish-nuggets/master/functions/rvm.fish
You should now be able to use rvm command in fish after reopening terminal.
Run the following to add the line rvm default
to your fish config file.
echo 'rvm default' >> ~/.config/fish/config.fish
You should now be able to use ruby related binaries and gems after reopening terminal.