]> 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>
Wed, 14 May 2025 20:33:39 +0000 (21:33 +0100)
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
(cherry picked from commit 6d07d23b022d48898d9a2e7181ab6493d3d61c43)

shell-completion/zsh/_systemctl.in

index a5a16b3fdbe1700d341596728bd067839761c419..4ac620847ff132c5254c323a24852d6d6f080240 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