From: Eisuke Kawashima Date: Tue, 13 May 2025 00:04:52 +0000 (+0900) Subject: shell-completion: fix completion of `systemctl --user unset-environment` (#37409) X-Git-Tag: v258-rc1~638 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d07d23b022d48898d9a2e7181ab6493d3d61c43;p=thirdparty%2Fsystemd.git shell-completion: fix completion of `systemctl --user unset-environment` (#37409) Co-authored-by: Eisuke Kawashima --- diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index 0000147fe42..16e43d0f12e 100644 --- a/shell-completion/zsh/_systemctl.in +++ b/shell-completion/zsh/_systemctl.in @@ -413,7 +413,7 @@ for fun in set-environment unset-environment ; do suf='-S=' fi _wanted systemd-environment expl 'environment variable' \ - compadd "$@" ${suf} - ${${(f)"$(systemctl show-environment)"}%%=*} + compadd "$@" ${suf} - ${${(f)"$(systemctl "$_sys_service_mgr" show-environment)"}%%=*} } done