shell-completion: fix completion of systemctl --user unset-environment (#37409)

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
Eisuke Kawashima
2025-05-13 09:04:52 +09:00
committed by GitHub
parent 02527e95b5
commit 6d07d23b02

View 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