I am using Emacs Live. How can I configure emacs ansi-term to allow login shell? When I try to switch rvm gemsets I get the following message:
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.
Thanks!
I found that if I add the following line, Emacs will find RVM as a function and stop complaining.
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
When Mx ansi-term
asks you which program to run, you should replace the default provided value by:
/bin/bash --login
before hitting RET
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.