about summary refs log tree commit diff
path: root/Completion/Unix/Command/_top
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-02-07 02:37:45 +0100
committerOliver Kiddle <opk@zsh.org>2021-02-07 02:37:45 +0100
commitb17449352eee39413d80fa4e886eb4f07e7519cd (patch)
tree6419a4a7e6fba0657e176439d8279c264d237ec0 /Completion/Unix/Command/_top
parent509e84ef4455c8ec00ad28322bee741717ab47bf (diff)
downloadzsh-b17449352eee39413d80fa4e886eb4f07e7519cd.tar.gz
zsh-b17449352eee39413d80fa4e886eb4f07e7519cd.tar.xz
zsh-b17449352eee39413d80fa4e886eb4f07e7519cd.zip
47931: update completions for OpenBSD base up to 6.8
Diffstat (limited to 'Completion/Unix/Command/_top')
-rw-r--r--Completion/Unix/Command/_top6
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_top b/Completion/Unix/Command/_top
index 652432166..af3deb6c7 100644
--- a/Completion/Unix/Command/_top
+++ b/Completion/Unix/Command/_top
@@ -64,7 +64,6 @@ case $OSTYPE in
       '-I[do not display idle processes]'
       '-i[interactive mode]'
       '-n[non-interactive mode (identical to batch mode)]'
-      '-o+[sort process display by the specified field]:field:( $fields )'
       '-p+[filter by the specified pid]: :_pids'
       '-q[renice top to -20]'
       '-S[show system processes]'
@@ -80,6 +79,7 @@ case $OSTYPE in
       '-j[display the jail ID]'
       '-t[do not display the top process]'
       '-m+[specify statistic type]:type:(( cpu\:default io ))'
+      '-o+[sort process display by the specified field]:field:( $fields )'
       '-P[per-cpu CPU usage statistics]'
       '(1 -)-v[write version number and exit]'
       '-w[display approximate swap usage]'
@@ -89,10 +89,14 @@ case $OSTYPE in
     );;
   openbsd*)
     fields+=( command )
+    order=( '-:reverse order' )
     specs+=(
       '-1[combine CPU statistic into one line]'
+      '-t[show the routing table instead of the wait channel]'
       '-C[show command arguments as well as process name]'
       '-g+[filter processes by the specified string]:string'
+      '-o+[sort process display by the specified field]:field:->sortkey'
+      '-T+[filter processes by the specified routing table]:routing table'
       '-U+[filter processes by the specified user]: :_users -M "L\:|-="'
     );;
   darwin*)