systemd/shell-completion/zsh
Eisuke Kawashima 20927c0eec
improve zsh completion (#32098)
* fix error
* remove options that are no longer supported
* add missing options
* stop completion if an option `--help` or `--version` is supplied

[[[
zjs: a note for the reader:

zshcompsys(1) in the section about optspecs in _arguments says:

> Each of the forms above may be preceded by a list in parentheses of option names  and  argument  num‐
> bers.  If the given option is on the command line, the options and arguments indicated in parentheses
> will not be offered.  For example, ‘(-two -three 1)-one:...' completes the option ‘-one'; if this ap‐
> pears  on  the  command line, the options -two and -three and the first ordinary argument will not be
> completed after it.  ‘(-foo):...' specifies an ordinary argument completion; -foo will  not  be  com‐
> pleted if that argument is already present.
> 
> Other  items  may  appear in the list of excluded options to indicate various other items that should
> not be applied when the current specification is matched: a single star (\*) for  the  rest  arguments
> (i.e. a specification of the form ‘\*:...'); a colon (:) for all normal (non-option-) arguments; and a
> hyphen (-) for all options.  For example, if ‘(\*)' appears before an option and the option appears on
> the  command  line,  the  list  of remaining arguments (those shown in the above table beginning with
> ‘\*:') will not be completed.

The intended effect of the change is to remove irrelevant completion matches from the completion.

tl;dr: (- : ) prevents further completion
]]]
2024-04-15 10:58:48 +02:00
..
_bootctl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_busctl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_coredumpctl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_hostnamectl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_journalctl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_kernel-install improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_localectl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_loginctl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_machinectl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_networkctl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_oomctl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_resolvectl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_sd_hosts_or_user_at_host license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
_sd_machines shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
_sd_outputmodes shared/logs-show: add new --output= format "short-delta" 2022-09-23 10:07:03 +02:00
_sd_unit_files license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
_systemctl.in improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_systemd improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_systemd-analyze improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_systemd-delta improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_systemd-inhibit improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_systemd-nspawn improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_systemd-path improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_systemd-run improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_systemd-tmpfiles improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_timedatectl improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
_udevadm improve zsh completion (#32098) 2024-04-15 10:58:48 +02:00
meson.build meson: Always build bootctl 2023-10-25 16:49:24 +02:00