systemd/shell-completion/zsh
Ronan Pigott 8139407ec1 zsh: remove usage of PREFIX in _systemctl
The usage of PREFIX in this completion is mostly counter to the intended
usage of compsys in zsh. It is generally expected that completion code
provide the available completions and tags in that word position so that
compsys, with user configuration, can filter them to the appropriate set.

One egregious error caused by the usage of PREFIX here is the caching of
SYS_ALL_UNITS, which stored only the unit names prematurely filtered by
the completion prefix, affecting all future completions. For example,

  $ systemctl cat nonsense<TAB>

might find no matching units if nonsense* has no matches, but now

  $ systemctl cat <TAB>

will fail in all future completions even though every unit file
is a valid match, because the cached set has been erroneously filtered
by the last prefix.
2023-05-05 22:12:50 +01:00
..
_bootctl bootctl: unlink and cleanup functions 2023-01-19 14:24:43 +01:00
_busctl shell-completion: add --xml-interface option of busctl to the rules 2023-04-11 11:47:56 +09:00
_coredumpctl coredump: Add --all option 2021-10-07 22:13:12 +02:00
_hostnamectl shell-completion: revert c1072f6473 2021-06-17 14:42:46 +02:00
_journalctl shell-completion: add journalctl --facility 2021-11-24 12:44:34 +00:00
_kernel-install shell-completion: revert c1072f6473 2021-06-17 14:42:46 +02:00
_localectl shell-completion: revert c1072f6473 2021-06-17 14:42:46 +02:00
_loginctl tree-wide: change --kill-who to --kill-whom 2022-08-26 11:15:44 +09:00
_machinectl shell-completion/zsh: rename helper for clarity 2022-10-20 09:58:00 +02:00
_networkctl shell-completion: revert c1072f6473 2021-06-17 14:42:46 +02:00
_oomctl tree-wide: replace "plural(s)" by "plurals" 2022-10-17 15:10:53 +02:00
_resolvectl Use https for gnu.org 2022-06-28 16:07:35 +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 zsh: remove usage of PREFIX in _systemctl 2023-05-05 22:12:50 +01:00
_systemd shell-completion: revert c1072f6473 2021-06-17 14:42:46 +02:00
_systemd-analyze systemd-analyze: Add tab complete logic for plot 2023-01-18 14:33:08 +00:00
_systemd-delta shell-completion: revert c1072f6473 2021-06-17 14:42:46 +02:00
_systemd-inhibit shell-completion: revert c1072f6473 2021-06-17 14:42:46 +02:00
_systemd-nspawn zsh-completion: nspawn: add --suppress-sync option 2021-10-20 22:53:39 +09:00
_systemd-path licensing: add forgotten spdx headers 2021-10-01 14:45:00 +02:00
_systemd-run Reintroduce ExitType 2021-11-08 10:15:23 +01:00
_systemd-tmpfiles shell-completion: revert c1072f6473 2021-06-17 14:42:46 +02:00
_timedatectl shell-completion: revert c1072f6473 2021-06-17 14:42:46 +02:00
_udevadm udevadm verify: introduce --root option 2023-03-10 17:10:41 +00:00
meson.build tree-wide: Drop gnu-efi 2023-03-10 11:41:03 +01:00