25 Aug
2009
25 Aug
'09
9:27 a.m.
This problem has been bugging me for some time: /etc/profile is only read for login-shells. That is fine, because you launch a login-shell once, then start your graphical environment from it. Most of the environment is persisitent so that it will appear in X terminals (which only launch interactive non-login shells). However, if you launch an interactive shell, the following is lost: * PS1, PS2 * all aliases * /etc/bash_completion So, I have to set up the bashrc of every user to restore PS1, PS2, my custom aliases and bash_completion. Is there a solution to this is in something like a "system-wide bashrc"? The current way is really inconvenient.