systemd/shell-completion/zsh
Zbigniew Jędrzejewski-Szmek 4e9183059a shell-completion/zsh: silence error when machinectl is not installed
This fixes a few unrelated issues:
- when ENABLE_MACHINED is false, machinectl is not installed, but _sd_machines
  is still used in a few places that want to complete -M and such.
  Also, bash completion calls machinectl in various places.
  Make missing machinectl mean "no machines" in this case, so
  that no error is generated in the callers.
- machinectl list --full would print multiple lines of output per machine,
  breaking grep, issue introduced in e2268fa437.
  Using --max-addresses=1 would fix the issue, but let's use
  --max-addresses=0 because we now can.
- the lists used in various places were slightly different for no good reason.
- don't use a subshell if not necessary.

The code for bash still uses the same combined list of images and running
machines for various commands. The zsh code uses images for start/clone, and
running machines for the rest. Maybe something to fix in the future.

Replaces #25048.
2022-10-20 09:58:00 +02:00
..
_bootctl bootctl: add --install-source=auto|image|host 2022-07-08 16:58:51 +01:00
_busctl Use https for gnu.org 2022-06-28 16:07:35 +02: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 tree-wide: change --kill-who to --kill-whom 2022-08-26 11:15:44 +09: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 shell-completion: drop unused $mode 2022-08-28 08:11:26 +00:00
_systemd shell-completion: revert c1072f6473 2021-06-17 14:42:46 +02:00
_systemd-analyze tree-wide: replace "plural(s)" by "plurals" 2022-10-17 15:10:53 +02: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 shell-completion: update for udevadm 2022-04-05 04:36:20 +09:00
meson.build meson: also allow setting GIT_VERSION via templates 2022-04-05 22:18:31 +02:00