diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-05 12:34:28 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-08 20:01:40 +0100 |
commit | 341992081b6ece1adba270e239f96c9840884885 (patch) | |
tree | 1ef24c942104dd537a56b7484fc6794d49268e0e /shell-completion/zsh/_systemctl.in | |
parent | systemctl: deprecate blanket import-environment (diff) | |
download | systemd-341992081b6ece1adba270e239f96c9840884885.tar.xz systemd-341992081b6ece1adba270e239f96c9840884885.zip |
shell-completion: fix systemctl set/unset/import-environment
unset-environment is completed with variable names in the environment block.
set-environment the same, but suffixed with "=".
import-environment is completed with variable names in the client environment.
Diffstat (limited to 'shell-completion/zsh/_systemctl.in')
-rw-r--r-- | shell-completion/zsh/_systemctl.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index 4830aeba5f..22c40898e3 100644 --- a/shell-completion/zsh/_systemctl.in +++ b/shell-completion/zsh/_systemctl.in @@ -365,6 +365,11 @@ for fun in set-environment unset-environment ; do } done +(( $+functions[_systemctl_import-environment] )) || _systemctl_import-environment() +{ + _parameters +} + (( $+functions[_systemctl_link] )) || _systemctl_link() { _sd_unit_files } |