I am making a Debian package that contains bash aliases.
Where should these aliases be installed, so that they are available system-wide?
The "right" place would be
/etc/bash.bashrc, but this file is owned by the bash package, which will overwrite it on the next upgrade.
I tried to put them in
/etc/profile.d/my-aliases.sh but this affects only login shells (for example it works in the consoles). Interactive shells do not get the aliases.
It does "work" if I put them in
/etc/bash_completion.d/my-aliases.sh, but this is not meant to be used that way.
So my question is:
Where (or how) should I install aliases, so they are available to interactive shells system-wide?