I know the difference between the two bash login scripts:
.bashrc
is run only by "non-login" shells.
.bash_profile
(or .bash_login
or .profile
) is executed by "login" shells.
Does anyone have some good examples of what things that are a better fit for login-only execution, such that I'd only put them in .bash_profile
, but they wouldn't really make sense in .bashrc
?
(I know most of us source .bashrc
out of .bash_profile
, so there doesn't seem to be much point in the opposite question...)