zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@zsh.org>
To: Zsh workers <zsh-workers@zsh.org>
Subject: PATCH: update completions for NetBSD 9
Date: Mon, 08 Feb 2021 00:15:03 +0100	[thread overview]
Message-ID: <48916-1612739703.700762@nn7x.sJXz.CEaW> (raw)

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


                 reply	other threads:[~2021-02-07 23:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48916-1612739703.700762@nn7x.sJXz.CEaW \
    --to=opk@zsh.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).