I know the difference between the two bash login scripts:
.bashrc is run only by "non-login" shells.
.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
(I know most of us source
.bashrc out of
.bash_profile, so there doesn't seem to be much point in the opposite question...)