LoginSignup
1
1

More than 5 years have passed since last update.

fishにしたらrvmが動かなくなったけどなんとかなった話

Posted at

あらまし

どうした

fishにしたら、rvmがうごかぬ。

それで?

こうしたでござる。

・・・・・英語やん

いいか、3行にすると、

  1. curl -L --create-dirs -o ~/.config/fish/functions/rvm.fish https://raw.github.com/lunks/fish-nuggets/master/functions/rvm.fish
  2. ~/.config/fish/config.fishrvm default を追加
  3. Terminalを再起動。

以上だ!!!!

なにがどうなっていやがる!!!

これは、rvm use などを使って、

RVM is not a function, ....

って起こられてしまうときの対処法。

なぜ???

rvmのスクリプト群が読み込まれていないのが原因らしい。

source

でいけるっていうソースをちらほら見かけるけど、bashの場合の対処法のようで、fishには通用しない。

そこで上記先人の知恵を借りる。
ちなみに中身を見ると結局bash経由で

source ~/.rvm/scripts/rvm

してたりする。fishは辛いよ。

参考文献

Fish Shell -RVM

1
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1