thomas < XXXX@XXXXX.COM > writes:
There are three scripts that get run at various times:
X initialization script
(~/.xinitrc, ~/.xsession, et. al)
Shell Login script
(~/.profile, ~/.bash_profile, ~/.bash_login)
Personal initialization script
The X initialization script starts your X session and
desktop (kde, gnome or custom with .xsession). It is
here that you would start X clients (such as konquerer)
The Shell login script is executed once, and once only
when the shell process is first created. This will be
executed each time you create a new xterm(1) if the
-ls (loginshell) flag is set or the *VT100.loginShell: true
attribute is set in your X resources (man xrdb, man xterm).
It will be executed if the shell is invoked via /usr/bin/login
(e.g. via ssh, telnet, rsh or rlogin).
The personal initialization script is executed when an
interactive non-login shell is created. If a non-interactive
non-login shell is run and the BASH_ENV environment variable
names a personal intialization script, it is executed.
The above sequence is a bit different if bash is invoked as sh,
man bash for more information.