diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2017-12-07 11:30:32 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2017-12-07 11:30:32 -0600 |
commit | 6c456f9383ab0000527b4363bc82fc17850aba18 (patch) | |
tree | a481adfeaf5db2dd56c3b87538f1269ad68ef1d2 /zsh-completion/_rc-status | |
parent | d220fc272337b216bff6ac781a7b6be4e6f3caee (diff) |
Add zsh-completion support
Diffstat (limited to 'zsh-completion/_rc-status')
-rw-r--r-- | zsh-completion/_rc-status | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/zsh-completion/_rc-status b/zsh-completion/_rc-status new file mode 100644 index 00000000..fd35e9cd --- /dev/null +++ b/zsh-completion/_rc-status @@ -0,0 +1,18 @@ +#compdef rc-status + +_arguments -s \ + {'(--all)-a','(-a)--all'}'[Show services at all runlevels]' \ + {'(--crashed)-c','(-c)--crashed'}'[Show crashed services]' \ + {'(--list)-l','(-l)--list'}'[Show list of runlevels]' \ + {'(--runlevel)-r','(-r)--runlevel'}'[Show the name of the current runlevel]' \ + {'(--servicelist)-s','(-s)--servicelist'}'[Show all services]' \ + {'(--unused)-u','(-u)--unused'}'[Show services not assigned to any run level]' \ + {'(--help)-h','(-h)--help'}'[Print this help output]' \ + {'(--nocolor)-C','(-C)--nocolor'}'[Disable color output]' \ + {'(--version)-V','(-V)--version'}'[Display software version]' \ + {'(--verbose)-v','(-v)--verbose'}'[Run verbosely]' \ + {'(--quiet)-q','(-q)--quiet'}'[Run quietly (Does not affect errors)]' + +_values 'runlevels' $(rc-status --list) + +# vim: set et sw=2 ts=2 ft=zsh: |