我正在使用 Emacs Live。如何配置 emacs ansi-term 以允许登录 shell?当我尝试切换 rvm gemset 时,我收到以下消息:
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.
谢谢!
最佳答案
我发现如果我添加以下行,Emacs 会将 RVM 视为一个函数并停止提示。
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
关于shell - Emacs ansi-term 作为登录 shell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21739575/