summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_systemd
diff options
context:
space:
mode:
authorWilliam Giokas <1007380@gmail.com>2013-08-14 22:09:14 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-15 11:29:08 -0400
commit298b9e23a6e21161a7fe486aab94944a58d5e90c (patch)
treef6a92e5e86445f2c91241fc5fee02da93d3ceb3a /shell-completion/zsh/_systemd
parent1acbb95c2b58373909d1e7a09a2eed0f6595cf6e (diff)
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.
Diffstat (limited to 'shell-completion/zsh/_systemd')
-rw-r--r--shell-completion/zsh/_systemd11
1 files changed, 1 insertions, 10 deletions
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]' \