aboutsummaryrefslogtreecommitdiff
path: root/src/openrc-run
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2024-06-28 14:41:24 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2024-06-28 14:41:24 -0500
commit917a7031d946c0b608517936fab0f54689167265 (patch)
tree382e93e293741fb114496e85dfa65ce213323a9a /src/openrc-run
parent4dfec917cc44b3337ebe0bfc82052c89944be0e0 (diff)
remove the openrc-service-script bash completion
Bash completion has two official completion directories: - completionsdir, a lazy loading mechanism - compatdir, an eager loading mechanism Modern style is to use lazy loading if possible. It is modern technology, speeds up your shell by deferring loads, and is generally recommended for applications to prefer by default. It requires you name your completion script using the same name as the command to complete. Every distro prefers you do this, but only because bash-completion itself does. The openrc-service-script completion doesn't provide a completion for a command called openrc-service-script. It cannot use the lazy loading mechanism and emits a warning in Gentoo's policy lints as a result. Installing to the completionsdir is therefore a useless no-op. Better to install nothing. The compatdir is the correct location for completions that cannot be lazy loaded and must be loaded at shell startup in order to correctly register themselves for a globbed list of commands that can only be ascertained dynamically at shell startup. The alternative is to have every command that can be globbed install a symlink to openrc-service-script, and install openrc-service-script to a third location.
Diffstat (limited to 'src/openrc-run')
0 files changed, 0 insertions, 0 deletions