On Sun, 2025-03-16 at 18:47 +0000, Blair Noctis wrote: > > Kind of a shameless plug, but enough people said it's useful so I thought > might as well let more know. > > I'll not go into great details, because there isn't any. Just check its man > page and source code: > https://manpages.debian.org/unstable/dh-shell-completions/dh_shell_completions.1.en.html > https://salsa.debian.org/debian/dh-shell-completions
Thank you for this dh module! After browsing the examples, I came up with an old problem about these completion scripts -- whether the completions should be loaded by default, and whether that behavior should be synced among shells. Do you think it is useful to define some flags for dh_shell_completions, like --enable-by-default, --disable-by-default to decide whether a completion file should be enabled by default. I'm raising this question because I find it somewhat confusing because different shells do the completions and keybindings in very different ways. For instance, fzf: https://salsa.debian.org/go-team/packages/fzf/-/blob/master/debian/README.Debian As you can see, key-binding scripts are similar to completion scripts. Maybe they can be dealt by the same dh module as well. Generally key-binding scripts should not be enabled by default due to potential conflicts. A quick search suggests that both policy and devref do not cover the shell integration topic. An example that resembles what I'm talking about is dh_installsystemd. It has --no-enable, --restart-after-upgrade, --no-restart-after-upgrade, etc flags to control the systemd unit behavior upon dpkg actions.