How to load aliases and environment variables for ansi-term / mult-term?

Do I need to configure something like .emacs.d/init_bash.sh(like for shell-mode), or can it read mine ~/.bash_profiledirectly? If the latter, how do I configure configure ansi-term / mult-term to automatically run this file on startup?

+3
source share
1 answer

Automatically download the source .bash_profile file. The usual source for the .bashrc shell. However, this should not be a problem, since all shells are usually generated from the login shell and therefore inherit its environment. When I use ansi-term, it does not require additional configuration on my part and functions, for example, like a terminal opened with a gnome-terminal, for example.

+5
source

All Articles