From 298b9e23a6e21161a7fe486aab94944a58d5e90c Mon Sep 17 00:00:00 2001 From: William Giokas <1007380@gmail.com> Date: Wed, 14 Aug 2013 22:09:14 -0500 Subject: zsh_completion: Allow specifying multiple arguments Some of the options in systemd can take multiple arguments, such as systemctl's --type option. Previously, you would only be able to complete a single type after the -t, but now zsh will continue to complete the types, separating them by commas. systemd-inhibit's --what command has colon (:), and that has been taken into account. --- shell-completion/zsh/_systemd | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'shell-completion/zsh/_systemd') diff --git a/shell-completion/zsh/_systemd b/shell-completion/zsh/_systemd index 7aab52d5b6..fe39de8c38 100644 --- a/shell-completion/zsh/_systemd +++ b/shell-completion/zsh/_systemd @@ -1,4 +1,4 @@ -#compdef systemd-cat systemd-ask-password systemd-cgls systemd-cgtop systemd-delta systemd-detect-virt systemd-machine-id-setup systemd-notify systemd-tty-ask-password-agent +#compdef systemd-cat systemd-ask-password systemd-cgls systemd-cgtop systemd-detect-virt systemd-machine-id-setup systemd-notify systemd-tty-ask-password-agent _ctls() { @@ -45,15 +45,6 @@ _ctls() {-b,--batch}'[Run in batch mode, accepting no input]' \ '--depth=[Maximum traversal depth]' ;; - systemd-delta) - _arguments \ - {-h,--help}'[Show this help]' \ - '--version[Show package version]' \ - '--no-pager[Do not pipe output into a pager]' \ - '--diff=[Show a diff when overridden files differ]:boolean:(1 0)' \ - {-t,--type=}'[Only display a selected set of override types]:types:(masked equivalent redirected overridden unchanged)' \ - ':SUFFIX:(tmpfiles.d sysctl.d systemd/system)' - ;; systemd-detect-virt) _arguments \ {-h,--help}'[Show this help]' \ -- cgit v1.2.3-54-g00ecf