鱼壳和rvm-允许登录壳 [英] Fish shell and rvm - allowing login shell

查看:87
本文介绍了鱼壳和rvm-允许登录壳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在鱼壳中使用rvm时,出现以下消息:

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

ciembor @ ciembor〜> rvm使用1.9.2

ciembor@ciembor ~> rvm use 1.9.2

RVM不是功能,使用'rvm use ...'选择红宝石不会工作.

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

您需要更改终端仿真器首选项以允许登录壳.有时需要使用/bin/bash --login 作为命令.请访问 https://rvm.io/integration/gnome-terminal/例子.

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.

我习惯于使用/bin/bash --login ,然后使用 rvm ,然后从 bash开始 fish 代码>.难道没有更直接的方法吗?我使用xfce4终端.

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.

推荐答案

从GitHub下载fish函数.

Download the fish functions from GitHub.

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

并在您的config.fish文件中手动激活默认的Ruby:

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

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

您已经完成

这篇关于鱼壳和rvm-允许登录壳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆