mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user