Re: Shell Completion Scripts - Bash and others - CPAN Distribution
Mikko Johannes Koivunalho <[email protected]> Sun, 5 Oct 2025 20:15:24 +0200
| Newsgroups | gmane.linux.debian.devel.perl |
|---|---|
| Message-ID | <[email protected]> |
Thank you, gregor. I think it is an interesting question because the completion scripts are sometimes done by others, the users of the software, not the developers. So contrib/ might really be the correct place. --Mikko On 05/10/2025 18:55, gregor herrmann wrote: > On Sun, 05 Oct 2025 13:37:04 +0200, Mikko Johannes Koivunalho wrote: > >> Is there any policy in this area? > > I don't think so. > >> - How to include shell completion scripts in a CPAN distribution? > > That's more of a question for the CPAN folks :) > > Examples I find locally are: > - rex: puts them in share/ > - minilla: under contrib/ > - distzilla: under misc/ > - Module::Build: under contrib/ > >> - Does the group take any action if there is shell completion scripts >> included in a distro? > > Yes, if we see a bash or zsh completion script in a CPAN distribution, > we will typically install it. (And it doesn't matter in which > subdirectory they are shipped and how the files are named.) > > E.g. for rex the completions end up as > - /usr/share/bash-completion/completions/rex > - /usr/share/zsh/vendor-completions/_rex > > > Cheers, > gregor >