From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28768 invoked from network); 7 Feb 2021 23:15:22 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Feb 2021 23:15:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:From:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=wNWH1H4Y3tateiU6B74fl7dN5hxWq6vfbXtUjfMcOiM=; b=hapjH0ukzYiPVMlPEx8V3C3/zl JUPsCpsYRPNOIrY11crRzRQkik6V9aukJufs//EG1B/lb7H78tgYG/lVsYnZMuCv34JcP6jOYBI12 8/N8d6+cB9w9QGLIt+/o5iS45GzSEi8tfnuNND1M+syY6fx2rF6pTY9ZJuVsuF41jxpsTwb2HCrH4 HlWz/QhgbtchcfAdp/mADCZ+V19Q26/sAKE3NfVWrI5vEKgMIraC9ZQOxVrC78gUSWz7AiPIre55O l8hpC2eI4LAGL3YWN/T93pZQYWIlPsP1w0HXl7HaIfEcQTydroWiyGvw67AjLG1fufyjt+FiGuLi0 d+ZWK/xQ==; Received: from authenticated user by zero.zsh.org with local id 1l8tGw-000JxN-9g; Sun, 07 Feb 2021 23:15:18 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1l8tGj-000Jp4-0u; Sun, 07 Feb 2021 23:15:05 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.93.0.4) (envelope-from ) id 1l8tGh-000Ciz-Mh for zsh-workers@zsh.org; Mon, 08 Feb 2021 00:15:04 +0100 From: Oliver Kiddle To: Zsh workers Subject: PATCH: update completions for NetBSD 9 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <48915.1612739703.1@hydra> Date: Mon, 08 Feb 2021 00:15:03 +0100 Message-ID: <48916-1612739703.700762@nn7x.sJXz.CEaW> X-Seq: 47944 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: These changes were for 9.0 though I have checked against 9.1 pkgin is not in the base system but is a primarily NetBSD thing so I've included it here. Oliver diff --git a/Completion/BSD/Command/_bsd_pkg b/Completion/BSD/Command/_bsd_pkg index 25d4f346a..6bdce58e0 100644 --- a/Completion/BSD/Command/_bsd_pkg +++ b/Completion/BSD/Command/_bsd_pkg @@ -144,6 +144,7 @@ _bsd_pkg() { netbsd*) flags+=( '(:)-a[delete all installed packages]' + '(:)-A[remove automatically installed packages that are no longer required]' "-D[don't execute deinstallation scripts]" '-F[specify each package by an installed file]' '-f[force deinstallation]' diff --git a/Completion/BSD/Command/_pkgin b/Completion/BSD/Command/_pkgin index 5cb12baea..662bed181 100644 --- a/Completion/BSD/Command/_pkgin +++ b/Completion/BSD/Command/_pkgin @@ -26,7 +26,7 @@ _arguments -s -S -C \ '*:: :->restargs' && ret=0 if [[ -n $state ]]; then - cmds=( ${${${(f)"$(_call_program commands $pkgin -h 2>&1)"}[3,-1]/ - (#b)(?)/:$match:l}%.} ) + cmds=( ${${${(f)"$(_call_program commands $pkgin -h 2>&1)"}[3,-1]/ - (#b)(?)/:$match:l}%.} ) short=( ${${cmds#*\(}/ #\)/} ) cmds=( ${cmds// #\(*\)/} ) if [[ $state = subcommands && ! -prefix - ]]; then diff --git a/Completion/BSD/Command/_systat b/Completion/BSD/Command/_systat index a123e081c..7d837790a 100644 --- a/Completion/BSD/Command/_systat +++ b/Completion/BSD/Command/_systat @@ -75,9 +75,10 @@ case $OSTYPE in opts=( '-M[alternative source to extract values from]:core:_files' '-N[alternative source to extract the name list from]:system:_files' - '-n[do not resolve IP addresses]' - '-w[refresh interval]:refresh interval' - '-t[the amount of refreshes for each screen in '\''all'\'' display mode]:turns' + '(-t -w)-b[show the chosen display once and exit]' + "-n[don't resolve IP addresses]" + '(-b)-w[refresh interval]:refresh interval' + "(-b)-t[specify amount of refreshes for each screen in 'all' display mode]:turns" ) esac diff --git a/Completion/Unix/Command/_dmesg b/Completion/Unix/Command/_dmesg index 3dd059214..1aa3bc262 100644 --- a/Completion/Unix/Command/_dmesg +++ b/Completion/Unix/Command/_dmesg @@ -1,6 +1,6 @@ #compdef dmesg -local args +local -a args case $OSTYPE in linux*) args=( -S -- ) ;; @@ -27,6 +27,13 @@ case $OSTYPE in '-n[use specified kernel core]:number' ) ;; + netbsd*) + args+=( + '-d[show timestamp deltas]' + '(-t)-T[format uptime timestamps in a human readable form]' + '(-T)-t[suppress printing uptime timestamps]' + ) + ;; esac -_arguments -s $args +_arguments -s : $args