Eld*_*ael 8 xubuntu terminator
我安装了一个新的 Xubuntu 14.04 虚拟机并安装了 Ruby 版本管理器(rvm)。
在尝试安装 SASS gem 时,我收到以下错误:
$ rvm use 2.0
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.
Run Code Online (Sandbox Code Playgroud)
我检查了这个 StackOverflow 问题并使用配置的终止符来使用登录外壳:

不幸的是,执行此操作后,新终端不会显示提示:

任何想法为什么这不起作用?
您可以通过选中“运行特殊命令而不是我的 shell”,让您的 Terminator 将 Bash 作为登录 shell 运行。
/bin/bash --login这应该让您在登录 shell 中运行 Bash。要验证,请在 Terminator 中输入:
shopt login_shell
Run Code Online (Sandbox Code Playgroud)
它应该返回“yes”并且您知道您正在运行登录shell。