about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-02-07 02:54:21 +0100
committerOliver Kiddle <opk@zsh.org>2021-02-07 02:54:21 +0100
commit2edac834a861043cf53ce36349edb13e1571c860 (patch)
treea087caa580a86740ef9bf10b5872b9cdff0b0983
parentb17449352eee39413d80fa4e886eb4f07e7519cd (diff)
downloadzsh-2edac834a861043cf53ce36349edb13e1571c860.tar.gz
zsh-2edac834a861043cf53ce36349edb13e1571c860.tar.xz
zsh-2edac834a861043cf53ce36349edb13e1571c860.zip
47932: update completions for procps 3.3.16
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Linux/Command/_free2
-rw-r--r--Completion/Unix/Command/_pgrep3
-rw-r--r--Completion/Unix/Command/_vmstat1
-rw-r--r--Completion/Unix/Command/_w1
5 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index df096438f..f0e404c62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-02-07  Oliver Kiddle  <opk@zsh.org>
 
+	* 47932: Completion/Linux/Command/_free, Completion/Unix/Command/_w,
+	Completion/Unix/Command/_pgrep, Completion/Unix/Command/_vmstat:
+	update completions for procps 3.3.16
+
 	* 47931: Completion/BSD/Command/_signify,
 	Completion/BSD/Command/_systat, Completion/Unix/Command/_locale,
 	Completion/Unix/Command/_netstat, Completion/Unix/Command/_top:
diff --git a/Completion/Linux/Command/_free b/Completion/Linux/Command/_free
index cc5bcf3bd..6d74e4a0d 100644
--- a/Completion/Linux/Command/_free
+++ b/Completion/Linux/Command/_free
@@ -1,5 +1,4 @@
 #compdef free
-# based on procps-ng-3.3.15
 
 _arguments -s \
   '(-l --lohi)'{-l,--lohi}'[show detailed low and high memory statistics]' \
@@ -7,6 +6,7 @@ _arguments -s \
   '(-w --wide)'{-w,--wide}'[wide mode]' \
   '(-s --seconds)'{-s,--seconds}'[specify the delay between display]:seconds: ' \
   '(-c --count)'{-c+,--count=}'[specify the display count]:count: ' \
+  '(-C --full-cache)'{-C,--full-cache}'[add further cache lines to main cache]' \
   '--si[use power of 1000 instead of power of 1024]' \
   '(-)--help[print help and exit]' \
   '(-)'{-V,--version}'[print version information and exit]' \
diff --git a/Completion/Unix/Command/_pgrep b/Completion/Unix/Command/_pgrep
index 49184307f..51a4883df 100644
--- a/Completion/Unix/Command/_pgrep
+++ b/Completion/Unix/Command/_pgrep
@@ -33,6 +33,7 @@ arguments=(
   '(-o -n --oldest --newest)'{-o,--oldest}'[match oldest process]'
   '(-P --parent)'{-P+,--parent=}'[match only on specified parent process IDs]: :->ppid'
   '(-l)-q[suppress normal output]'
+  '(-r --runstates)'{-r+,--runstates}'[match runstates]:run state:compadd -S "" D I R S T t W X Z'
   '-S[search also in system processes (kernel threads)]'
   '(-s --session)'{-s+,--session=}'[match only on specified process session IDs]: :->sid'
   # _signals is OK here - we do it differently below
@@ -61,7 +62,7 @@ arguments=(
 case $OSTYPE in
   linux*)
     # Note: We deliberately exclude -v but not --inverse from pkill
-    pgopts=acdFfGghLlnoPstUuVvwx-
+    pgopts=acdFfGghLlnoPrstUuVvwx-
     pkopts=ceFfGghLnoPstUuVx-
     arguments=(
       ${arguments:#((#s)|*\))(\*|)-[acl]*}
diff --git a/Completion/Unix/Command/_vmstat b/Completion/Unix/Command/_vmstat
index f3ac1af14..e05bc88bc 100644
--- a/Completion/Unix/Command/_vmstat
+++ b/Completion/Unix/Command/_vmstat
@@ -8,6 +8,7 @@ case $OSTYPE in
       '(-t --timestamp)'{-t,--timestamp}'[show timestamp]'
       '(-n --one-header)'{-n,--one-header}'[do not redisplay header]'
       '(-S --unit)'{-S+,--unit=}'[specify unit for displayed sizes]:unit prefix [K]:((k\:1000 K\:1024 m\:1000000 M\:1048576))'
+      '(-C --full-cache)'{-C,--full-cache}'[add further cache lines to main cache]'
       '1: :_guard "[0-9]#" "interval (seconds)"' '2:count'
       + '(action)' \
       '(- :)'{-h,--help}'[display help information]'
diff --git a/Completion/Unix/Command/_w b/Completion/Unix/Command/_w
index 8fb4154c7..69751c5e5 100644
--- a/Completion/Unix/Command/_w
+++ b/Completion/Unix/Command/_w
@@ -11,6 +11,7 @@ case $OSTYPE in
       '(H -o --old-style -s --short)'{-o,--old-style}'[old style output format]'
       '(H -s --short -o --old-style)'{-s,--short}'[use short output format]'
       '(H -u --no-current)'{-u,--no-current}'[ignore the username while figuring out the current process and cpu times]'
+      '(H -n --no-truncat)'{-n,--no-truncat}'[non-truncated listing (large)]'
       + H
       '(-)--help[display help information]'
       '(-)'{-V,--version}'[display version information]'