I wrote an alias for a huge command and stored it in .bash_profile
and to my surprise, emacs didn't pick up the alias that I wrote in .bash_profile
. After some searching in the internet, I created a .bashrc
file in my $HOME with the alias command and only after that emacs picked up the alias. I'm confused because terminal.app takes alias from .bash_profile
but emacs takes alias only in .bashrc
.
I was running M-x shell and I'm on macOS. Can someone explain me what's the relationship with emacs and .bashrc
& .bash_profile
.
More to the point, how can I get Emacs to read my .bash_profile
in addition to .bashrc
?