如何让 rvm 与 gnome-terminal 正常协作?

如何让 rvm 与 gnome-terminal 正常协作?

如何让 rvm 与 gnome-terminal 正常配合使用?

wim@wim-desktop:~$ rvm list

rvm rubies

=* ruby-1.9.3-p392 [ x86_64 ]
   ruby-2.0.0-p0 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

wim@wim-desktop:~$ ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
wim@wim-desktop:~$ rvm use 1.9.3

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.

我读这里我只需要在我的 gnome-terminal 配置文件首选项中选中“以登录 shell 身份运行命令”,我这样做了,然后重新打开了一个新终端,但它不起作用。然后我读到这里为了自动修复配置文件,我可以运行:

wim@wim-desktop:~$ rvm get [head|stable] --auto
stable]: command not found
cat: /home/wim/.rvm/help/get: No such file or directory
Could not update RVM, get some help at #rvm IRC channel at freenode servers.

正如您所见,这也不起作用。

答案1

我认为我通过放入我的~/.bashrc文件来修复它:

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

相关内容