From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0E38C138351 for ; Wed, 19 Feb 2020 17:53:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 446FCE0A9B; Wed, 19 Feb 2020 17:53:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0EAC9E0A9B for ; Wed, 19 Feb 2020 17:53:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2442334EDEF for ; Wed, 19 Feb 2020 17:53:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 248BF108 for ; Wed, 19 Feb 2020 17:53:37 +0000 (UTC) From: "Vadim Misbakh-Soloviov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vadim Misbakh-Soloviov" Message-ID: <1582131453.d6623d289f0ab014cdff8fce69ab277bb125d424.mva@gentoo> Subject: [gentoo-commits] proj/zsh-completion:master commit in: src/ X-VCS-Repository: proj/zsh-completion X-VCS-Files: src/_openrc X-VCS-Directories: src/ X-VCS-Committer: mva X-VCS-Committer-Name: Vadim Misbakh-Soloviov X-VCS-Revision: d6623d289f0ab014cdff8fce69ab277bb125d424 X-VCS-Branch: master Date: Wed, 19 Feb 2020 17:53:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 27777d38-aec3-43a8-b4c1-c5afd51e7daf X-Archives-Hash: c88d02ebe80dee0b4c5e6883bd99b6d9 commit: d6623d289f0ab014cdff8fce69ab277bb125d424 Author: William Hubbs gmail com> AuthorDate: Thu Dec 7 19:32:25 2017 +0000 Commit: Vadim Misbakh-Soloviov gentoo org> CommitDate: Wed Feb 19 16:57:33 2020 +0000 URL: https://gitweb.gentoo.org/proj/zsh-completion.git/commit/?id=d6623d28 remove OpenRC completions OpenRC will provide these completions starting with version 0.35. Signed-off-by: Vadim A. Misbakh-Soloviov mva.name> src/_openrc | 87 ------------------------------------------------------------- 1 file changed, 87 deletions(-) diff --git a/src/_openrc b/src/_openrc deleted file mode 100644 index f467f1a..0000000 --- a/src/_openrc +++ /dev/null @@ -1,87 +0,0 @@ -#compdef rc-update rc-status rc rc-service - -# openrc-0.12.4 - -local gentoo_runlevels -gentoo_runlevels=(/etc/runlevels/*(:t)) - -case "$service" in - rc-service) - if (( CURRENT == 2 )); then - _arguments -s \ - '(-e --exists)'{-e,--exists}"[tests if the service exists or not]" \ - '(-l --list)'{-l,--list}'[list all available services]' \ - '(-r --resolve)'{-r,--resolve}'[resolve the service name to an init script]' \ - '(-C --nocolor)'{-C,--nocolor}'[Disable color output]' \ - '(-v --verbose)'{-v,--verbose}'[Run verbosely]' \ - '(-q --quiet)'{-q,--quiet}'[Run quietly]' - _values "service" /etc/init.d/*~*.sh(:t) - else - case $words[2] in - -e|--exists|-r|--resolve) - (( CURRENT > 3 )) && return 0 - _values "service" /etc/init.d/*~*.sh(:t) - ;; - -*) - return 0 - ;; - *) - _values "action" stop start restart describe zap - ;; - esac - fi - ;; - rc-update) - local used_init - used_init=(${=${(M)${(f)"$(/sbin/rc-update show 2>/dev/null)"}:#*|*[a-z]*}% |*}) - - if (( CURRENT == 2 )); then - _values "rc-update actions" \ - 'add[Add script to a runlevel]' \ - 'del[Delete script from a runlevel]' \ - 'show[Show scripts lanched at a runlevel]' \ - '-a[Add script to a runlevel]' \ - '-d[Delete script from a runlevel]' \ - '-s[Show scripts lanched at a runlevel]' - elif (( CURRENT == 3 )); then - case "$words[2]" in - add|-a) - _values "service" /etc/init.d/*~*.sh(:t) - ;; - del|-d) - _values "service" $used_init - ;; - show|-s) - _values "runlevels" $gentoo_runlevels \ - '-v[Show all init scripts]' \ - '--verbose[Show all init scripts]' - ;; - esac - elif (( CURRENT == 4 )); then - _values "runlevels" $gentoo_runlevels - fi - ;; - 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' $gentoo_runlevels - ;; - rc) - if (( CURRENT == 2 )); then - _values "runlevels" $gentoo_runlevels - fi - ;; -esac - -# vim: set et sw=2 ts=2 ft=zsh: