Originally posted by rose_bud4201
I was under the impression that .bashrc was automatically executed whenever a new bash terminal was opened, but this doesn't seem to be the case whenever I ssh in.
Well, yes and no. The short answer is that BASH executes ~/.bashrc when you start "an interactive shell that is not a login shell." When the shell is a login shell, it starts ~/.bash_profile instead. A terminal window is not a login shell, but apparently the shell started by an SSH login is. You should refer to the "INVOCATION" section of the BASH man page for more details on what initialization files are run under what conditions. It's actually a fairly involved question.
As for getting your ~/.bashrc to always run, I just add the line
to my ~/.bash_profile to do that.