Currently, if I want to emerge app-shells/bash-completion, I should add . /etc/profile.d/bash-completion.sh in /etc/bash/bashrc in order to get global application. Will it be possible to add a /etc/bash/bashrc.d as hooks. Then app-shells/* can take advantage to apply themselves to non-login shells. something add to /etc/bash/bashrc like: for x in /etc/bash/bashrc.d/* do . $x done (i know it is badly coded since i learn little about bash...) Reproducible: Always
packages should never automatically install things into /etc/profile.d/, and the same logic applies to /etc/bash/bashrc.d/. installation of a package is not an automatic opt-in.
Well, in fact, bash-completion and java-config does. They have file in /etc/profile.d. Do you mean these are either workarounds or deprecated? Thank you for your reply.
what i meant was installing and automatically enabling. bash-completion does not. it installs a hook script, but it doesnt enable things unless the user has enabled it. change your console to start a login shell and it'll go through the normal /etc/profile* setup