mirror of
https://github.com/systemd/systemd
synced 2024-09-06 08:46:19 +00:00
Merge pull request #4 from systemd-mailing-devs/1431989131-25145-1-git-send-email-llua@gmx.com
zsh-completion: fix completion of --user services
This commit is contained in:
commit
ad2274289b
|
@ -93,9 +93,7 @@
|
|||
|
||||
__systemctl()
|
||||
{
|
||||
local -a _modes
|
||||
_modes=("--user" "--system")
|
||||
systemctl ${words:*_modes} --full --no-legend --no-pager "$@"
|
||||
systemctl $_sys_service_mgr --full --no-legend --no-pager "$@"
|
||||
}
|
||||
|
||||
|
||||
|
@ -355,6 +353,8 @@ _job_modes() {
|
|||
_values -s , "${_modes[@]}"
|
||||
}
|
||||
|
||||
local -a _modes; _modes=("--user" "--system")
|
||||
local _sys_service_mgr=${${words:*_modes}[(R)(${(j.|.)_modes})]:---system}
|
||||
_arguments -s \
|
||||
{-h,--help}'[Show help]' \
|
||||
'--version[Show package version]' \
|
||||
|
|
Loading…
Reference in a new issue