File: _rc-status

package info (click to toggle)
openrc 0.40.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,268 kB
  • sloc: ansic: 14,482; sh: 2,142; makefile: 584; perl: 28
file content (18 lines) | stat: -rw-r--r-- 839 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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: