Do I have to set up something like .emacs.d/init_bash.sh
(as for shell-mode), or can it read my ~/.bash_profile
directly? If the latter, how do I set configure ansi-term/multi-term to source this file automatically on start-up?
Only login shells source .bash_profile automatically. Regular shell source only .bashrc. This shouldn't regularly be a problem, however, since all shells are usually spawned from the login shell and therefore inherit its environment. When I use ansi-term it requires no additional setup on my part and functions just like a terminal opened with gnome-terminal, for instance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With