Gentoo Archives: gentoo-commits

From: Vadim Misbakh-Soloviov <mva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/zsh-completion:master commit in: src/
Date: Wed, 19 Feb 2020 17:53:42
Message-Id: 1582131453.d6623d289f0ab014cdff8fce69ab277bb125d424.mva@gentoo
1 commit: d6623d289f0ab014cdff8fce69ab277bb125d424
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Thu Dec 7 19:32:25 2017 +0000
4 Commit: Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 19 16:57:33 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/zsh-completion.git/commit/?id=d6623d28
7
8 remove OpenRC completions
9
10 OpenRC will provide these completions starting with version 0.35.
11
12 Signed-off-by: Vadim A. Misbakh-Soloviov <git <AT> mva.name>
13
14 src/_openrc | 87 -------------------------------------------------------------
15 1 file changed, 87 deletions(-)
16
17 diff --git a/src/_openrc b/src/_openrc
18 deleted file mode 100644
19 index f467f1a..0000000
20 --- a/src/_openrc
21 +++ /dev/null
22 @@ -1,87 +0,0 @@
23 -#compdef rc-update rc-status rc rc-service
24 -
25 -# openrc-0.12.4
26 -
27 -local gentoo_runlevels
28 -gentoo_runlevels=(/etc/runlevels/*(:t))
29 -
30 -case "$service" in
31 - rc-service)
32 - if (( CURRENT == 2 )); then
33 - _arguments -s \
34 - '(-e --exists)'{-e,--exists}"[tests if the service exists or not]" \
35 - '(-l --list)'{-l,--list}'[list all available services]' \
36 - '(-r --resolve)'{-r,--resolve}'[resolve the service name to an init script]' \
37 - '(-C --nocolor)'{-C,--nocolor}'[Disable color output]' \
38 - '(-v --verbose)'{-v,--verbose}'[Run verbosely]' \
39 - '(-q --quiet)'{-q,--quiet}'[Run quietly]'
40 - _values "service" /etc/init.d/*~*.sh(:t)
41 - else
42 - case $words[2] in
43 - -e|--exists|-r|--resolve)
44 - (( CURRENT > 3 )) && return 0
45 - _values "service" /etc/init.d/*~*.sh(:t)
46 - ;;
47 - -*)
48 - return 0
49 - ;;
50 - *)
51 - _values "action" stop start restart describe zap
52 - ;;
53 - esac
54 - fi
55 - ;;
56 - rc-update)
57 - local used_init
58 - used_init=(${=${(M)${(f)"$(/sbin/rc-update show 2>/dev/null)"}:#*|*[a-z]*}% |*})
59 -
60 - if (( CURRENT == 2 )); then
61 - _values "rc-update actions" \
62 - 'add[Add script to a runlevel]' \
63 - 'del[Delete script from a runlevel]' \
64 - 'show[Show scripts lanched at a runlevel]' \
65 - '-a[Add script to a runlevel]' \
66 - '-d[Delete script from a runlevel]' \
67 - '-s[Show scripts lanched at a runlevel]'
68 - elif (( CURRENT == 3 )); then
69 - case "$words[2]" in
70 - add|-a)
71 - _values "service" /etc/init.d/*~*.sh(:t)
72 - ;;
73 - del|-d)
74 - _values "service" $used_init
75 - ;;
76 - show|-s)
77 - _values "runlevels" $gentoo_runlevels \
78 - '-v[Show all init scripts]' \
79 - '--verbose[Show all init scripts]'
80 - ;;
81 - esac
82 - elif (( CURRENT == 4 )); then
83 - _values "runlevels" $gentoo_runlevels
84 - fi
85 - ;;
86 - rc-status)
87 - _arguments -s \
88 - {'(--all)-a','(-a)--all'}'[Show services at all runlevels]' \
89 - {'(--crashed)-c','(-c)--crashed'}'[Show crashed services]' \
90 - {'(--list)-l','(-l)--list'}'[Show list of runlevels]' \
91 - {'(--runlevel)-r','(-r)--runlevel'}'[Show the name of the current runlevel]' \
92 - {'(--servicelist)-s','(-s)--servicelist'}'[Show all services]' \
93 - {'(--unused)-u','(-u)--unused'}'[Show services not assigned to any run level]' \
94 - {'(--help)-h','(-h)--help'}'[Print this help output]' \
95 - {'(--nocolor)-C','(-C)--nocolor'}'[Disable color output]' \
96 - {'(--version)-V','(-V)--version'}'[Display software version]' \
97 - {'(--verbose)-v','(-v)--verbose'}'[Run verbosely]' \
98 - {'(--quiet)-q','(-q)--quiet'}'[Run quietly (Does not affect errors)]'
99 -
100 - _values 'runlevels' $gentoo_runlevels
101 - ;;
102 - rc)
103 - if (( CURRENT == 2 )); then
104 - _values "runlevels" $gentoo_runlevels
105 - fi
106 - ;;
107 -esac
108 -
109 -# vim: set et sw=2 ts=2 ft=zsh: