[Pkg-zsh-devel] Bug#921236: Bug#921236: zsh: provide equivalent of dh_bash-completion

Daniel Shahaf danielsh at apache.org
Sun Feb 3 13:39:14 GMT 2019


Dmitry Bogatov wrote on Sun, 03 Feb 2019 12:58 +0000:
> Source: zsh
> Severity: wishlist
> 
> Dear Maintainer,
> 
> please proived debhelper to install zsh completion scripts. Some of my
> upstreams provide zsh scripts, but I, as non-user of zsh, have no idea,
> how to install them properly.
> 

As a rule, completion functions (first line is "#compdef") should be
installed to /usr/share/zsh/vendor-completions and autoloadable
functions (first line is "#autoload") to /usr/share/zsh/vendor-functions;
both of these paths are Debian-specific.  I suggest that, at least for
now, you manually install the files to these paths.

However, do note that some upstreams ship completion files that are
inferior to those that ship with zsh itself.  In such cases it would be
desirable *not* to install the upstream's completion into the default
fpath (`/usr/bin/zsh -fc 'typeset -p fpath'`).

> In case of bash, dh_bash-completions ensures that everything is
> automatically done in policy-compliant way.

I'll leave it to others to comment on the idea of a dh_zsh-* helper.

Cheers,

Daniel



More information about the Pkg-zsh-devel mailing list