@suicidaleggroll: thanks for the pointer, got me going in the right direction.
On my system (Ubuntu 11.10) the /etc/profile.d only has a script dealing with 'bash_completion'. There is no /etc/bashrc, but there is a /etc/bash.bashrc file. Like ~.bashrc, the bash.bashrc is getting sourced implicitly during creation of sub-shells, but not login shells.
This would certainly work for my goal of having a single location for system wide bash environment settings. I can put the global settings in /etc/bash.bashrc and then source both ~.bashrc and /etc/bash.bashrc from the ~.profile files.
Last edited by ForumUser2; 08-17-2012 at 11:06 PM.
|