When I try to use rvm in fish shell, I get this message:
ciembor@ciembor ~> rvm use 1.9.2
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell. Sometimes it is required to use
/bin/bash --login
as the command. Please visit https://rvm.io/integration/gnome-terminal/ for a example.
I get used to use /bin/bash --login
, then rvm
and then starting fish
from bash
. But isn't there more straightforward way? I use xfce4 terminal.
Download the fish functions from GitHub.
And activate the default Ruby manually in your config.fish file:
And you're done
Try look at bash "initialization" files like ~/.bashrc ~/.bash_profile and session "initialization" files ~/.profile /etc/profile* and add rvm related code(something like
) to fish "initialization" file ~/.config/fish/config.fish
I had the same issue. Download the rvm fish function from GitHub:
Reference: http://rvm.io/integration/fish