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:
co-authored by
Eisuke Kawashima
parent
02527e95b5
commit
6d07d23b02
@@ -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