]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: fix completion of `systemctl --user unset-environment` (#37409)
authorEisuke Kawashima <e.kawaschima+github@gmail.com>
Tue, 13 May 2025 00:04:52 +0000 (09:04 +0900)
committerGitHub <noreply@github.com>
Tue, 13 May 2025 00:04:52 +0000 (09:04 +0900)
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
shell-completion/zsh/_systemctl.in

index 0000147fe42f24c9f6f6d235266b3fb141ccbeb9..16e43d0f12e4ecea73b7b10242e8e5c8f3fa3680 100644 (file)
@@ -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