我正在使用Emacs Live。如何配置emacs ansi-term以允许登录shell?当我尝试切换rvm gemsets时,我收到以下消息:
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.
谢谢!
答案 0 :(得分:2)
我发现如果我添加以下行,Emacs会将RVM作为一个函数发现并停止抱怨。
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
答案 1 :(得分:-3)
当 M-x ansi-term
询问您要运行哪个程序时,您应该将默认提供的值替换为:
/bin/bash --login
在点击 RET
之前