[arch-dev-public] System-wide bashrc?

Thomas Bächler thomas at archlinux.org
Tue Aug 25 04:27:33 EDT 2009

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 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090825/3d6ffe96/attachment.pgp>

More information about the arch-dev-public mailing list