]> 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)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 17 May 2025 11:43:20 +0000 (12:43 +0100)
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
(cherry picked from commit 6d07d23b022d48898d9a2e7181ab6493d3d61c43)
(cherry picked from commit 11c16d414ebbcb13e39971d90ece4a1e0db183d2)

shell-completion/zsh/_systemctl.in

index df9045f229bca71f9120a89df5ed7a2cfe6a7910..c787c42af7f8ec81c55beb4e8dd457095d81c212 100644 (file)
@@ -412,7 +412,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