> # .profile is read for all login shells
> # all other interactive shells will read .bashrc
> # So read .bashrc also from .profile and make all changes to .bashrc.
> # Then you should always have your correct setup.
I can only guess that whoever wrote this is trying to cover
the X based shells, which is a Good Thing to strive for,
but assuming that all of *those* will source .bashrc,
which is a flawed assumption.
IT WILL TAKE SOME WORK
to get your .xinitrc set right,
but I believe it will be worth it.
And I would also like to hear back: What is required for GNOME?
What is required for KDE? I haven't attended to it since I was using
FVWM so I need some confirmation. But to the extent that X11R6 is X,
then ye olde $HOME/.xinitrc should be honoured.
Repeating the summary:
* $HOME/.profile for line-mode logins
* $HOME/.xinitrc for GUI logins
* those may both (if you wish) source $HOME/etc/profile
* with care, the C-Shell variants can source it too
I firmly believe (but am willing, even anxious, to be
proved wrong) that adding these things to .bashrc is wrong.
The practice I've suggested here not only works on Linux
but on Solaris, HP-UX, AIX, ... etc, etc, ad nauseum.
-- RMT