Remove calls to programs from /sbin/ with _call_program and to avoid the
system complies to the FHS.
Support modules completion for NixOS and Guix which store their kernel
modules not at /lib/modules.
Now it properly gets completed, but in the case of gpg.openpgp.program,
the description would be shown as "unknown option name", that being the
description of gpg.*.program via `git help -c`, which shadows the
more description of gpg.openpgp.program in $git_options.
Problem
Variants of tar based on libarchive or GNU tar can support extracting
zstd based files.
Solution
Add this type of to _tar_archive.
From noraj <gitlab@mg.gitlab.com>
Problem
Variants of tar based on libarchive can extract zip files but
`tar xf <tab>` does not complete this type of file.
Solution
Add this type of to _tar_archive.
By default Unison uses the ~/.unison directory to store its cache and
profiles. However, this location is configurable through the $UNISON
environment variable. Quoting from the manual [1]:
> If the environment variable UNISON is defined, then its value will be
> used as the name of this directory.
This patch enables users to move the .unison directory and still enjoy
zsh completion for profiles.
[1] https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#unisondir
Add support to the -S and -W options.
Remove the facility for completing files from the tree specified by the
--source argument since, upon testing in git 2.26.0, that doesn't seem
to be correct behaviour. (Note git-restore(1) says the command is
experimental and its semantics may change.) See discussion on the PR
for details.
* Update _command_names to add **/sbin to PATH when not otherwise overridden
and _comp_priv_prefix is set. This ensures that, on systems where
unprivileged users don't have **/sbin in their PATHs, we can still complete
those commands when they try to run them with e.g. sudo
* Update functions for privilege-gaining commands to use the aforementioned
mechanism
* Fix some other minor issues in _pfexec and _doas
Changes from the posted diff:
* Fix a minor redundancy in _doas
* Add _c_p_p=( '' ) hack to _su