3.2 Bash configuration
I modify shell startup scripts to my taste across the system:
/etc/bash.bashrc Replace with private one
/etc/profile Keep distribution copy ( \w -> \W)
/etc/skel/.bashrc Replace with private copy
/etc/skel/.profile Replace with private copy
/etc/skel/.bash_profile Replace with private copy
~/.bashrc Replace with private copy for all accounts
~/.profile Replace with private copy for all accounts
~/.bash_profile Replace with private copy for all accounts
See details in my example scripts
. I like
a transparent system, so I set umask
to 002 or 022.
PATH
is set by the following configuration files in this order:
/etc/login.defs - before the shell sets PATH
/etc/profile (may call /etc/bash.bashrc)
~/.bash_profile (may call ~/.bashrc)