无法让 RVM 切换红宝石 [英] Can't get RVM to switch rubies
本文介绍了无法让 RVM 切换红宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何明确地将我的鱼壳指向 RVM 的红宝石版本?
How do I explicitly point my fish shell to RVM's version of rubies?
我正在使用鱼壳并安装了 RVM.但是,无论我做什么,RVM 都不想切换红宝石.
I'm using fish shell and I installed RVM. However, no matter what I do, RVM doesn't want to switch rubies.
rvm rubies
=* ruby-2.3.0 [ x86_64 ]
> ruby -v
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
> rvm use ruby-2.3.0
Using /Users/.../.rvm/gems/ruby-2.3.0
> ruby -v
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
我的 config.fish 文件包含:rvm default
my config.fish file contains: rvm default
我在这里做错了什么?
更新:
> which ruby
/usr/bin/ruby
which -a ruby
/usr/bin/ruby
echo $PATH
/usr/local/bin /usr/bin /bin /usr/sbin /sbin
似乎路径可能是错误的,但我不确定也不知道如何更正.
It seems like the path might be wrong, but i'm not sure and not sure how to correct it.
编辑 2:
现在我更改了路径,但它仍然不起作用:
Now I changed the path, but it still isn't working:
> echo $PATH
/Users/.../.rvm/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin
推荐答案
也许这是一个愚蠢的观察,但从 github 安装后:
Maybe it is a silly observation, but after installing from github:
curl -L --create-dirs -o ~/.config/fish/functions/rvm.fish https://raw.github.com/lunks/fish-nuggets/master/functions/rvm.fish
您是否像这样配置了 rvm defaul?:
did you configure the rvm defaul like this?:
echo "rvm default" >> ~/.config/fish/config.fish
这篇关于无法让 RVM 切换红宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文