[Pkg-zsh-devel] Bug#786881: Bug#786881: zsh: reusability of bash-completion scripts
Axel Beckert
abe at debian.org
Tue May 26 12:19:05 UTC 2015
Hi,
Ritesh Raj Sarraf wrote:
> In Debian, bash seems to have more package coverage for completion.
Yes, but it's not a full superset. IIRC there are tools which have a
zsh completion but no bash-completion. (Although it's vice versa in
most cases.)
> The bash-completion package has support for a good number of such
> scripts.
Yes, but there are also quite some tools which have better zsh than
bash completion.
So we would need a way to check if there's a zsh completion and only
fall back to the bash completion if no zsh completion is available.
Not sure if bashcompinit already provides such a feature or if it
replaces all of compinit with its bashy variant. At least the
documentation doesn't really say in 5.0.7:
The function bashcompinit provides compatibility with bash's
programmable completion system. When run it will define the
functions, compgen and complete which correspond to the bash
builtins with the same names. It will then be possible to use
completion specifications and functions written for bash.
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
More information about the Pkg-zsh-devel
mailing list