Fish shell and rvm - permitting shell for entry

When I try to use rvm in a fish shell, I get this message:

ciembor @ciembor ~> rvm use 1.9.2

RVM is not a function, choosing rubies using "rvm use ..." will not work.

You need to change the settings of the terminal emulator to allow the shell to enter the system. Sometimes it is required to use /bin/bash --loginas a team. Please visit https://rvm.io/integration/gnome-terminal/ for an example.

I use /bin/bash --login, then rvm, and then run fishfrom bash. But is there an easier way? I am using xfce4 terminal.

+1
source share
3 answers

I had the same problem. Download the rvm fish function from GitHub:

curl --create-dirs -o ~/.config/fish/functions/rvm.fish https://raw.github.com/lunks/fish-nuggets/master/functions/rvm.fish

Link: http://rvm.io/integration/fish

+2
source

Download fish features from GitHub.

curl -L --create-dirs -o ~/.config/fish/functions/rvm.fish https://raw.github.com/lunks/fish-nuggets/master/functions/rvm.fish

And activate Ruby by default manually in the config.fish file:

echo "rvm default" >> ~/.config/fish/config.fish

And you are done

+2
source

bash " , ~/.bashrc ~/.bash_profile ~/.profile/etc/profile * rvm (-

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

), ~/.config/fish/config.fish

0

Source: https://habr.com/ru/post/1677592/


All Articles