2018-06-19 06:05:27 UTC
with the last update of bash I realized that it overwrites /etc/bash.bashrc without .pacsave or .pacnew. Since I had customizations in /etc/bash.bashrc I am wondering now where to put those customizations instead.
I understand that /etc/profile and /etc/profile.d/* is a good place to customize environment variables. But it is not good for setting PS1 (and aliases by the way).
PS1 is also set to a default value in /etc/bash.bashrc. And since /etc/bash.bashrc is sourced after all the /etc/profile* stuff it overwrites the customization.
So what is the best place to customize PS1? /etc/skel/ is no solution since it only takes effect when a new user is created. /etc/environment is no good solution since it does not support if/then conditions.
And, by the way, why is the bash package not making use of.pacsave/.pacnew. A simple "backup etc/bash.bashrc" in .PKGINFO would help a lot.
There is also an old issue in the tracker talking about the "/etc/bash.bashrc overwrite" topic: https://bugs.archlinux.org/task/21540
But without solution.