summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-09-15 18:31:11 +0200
committerOliver Kiddle <opk@zsh.org>2017-09-15 18:31:11 +0200
commit9429663af32488ce81aee19ac04697b07fc241ab (patch)
tree64468c31d31df022b3f5b78e111f0ee373078111 /Completion/Unix/Command
parentc2d4fa50edf47c87e22189323f01794260f8b0fe (diff)
downloadzsh-9429663af32488ce81aee19ac04697b07fc241ab.tar.gz
zsh-9429663af32488ce81aee19ac04697b07fc241ab.zip
41709: update options in Linux sysstat completions
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_iostat22
1 files changed, 16 insertions, 6 deletions
diff --git a/Completion/Unix/Command/_iostat b/Completion/Unix/Command/_iostat
index 88fc6a103..e95d62f80 100644
--- a/Completion/Unix/Command/_iostat
+++ b/Completion/Unix/Command/_iostat
@@ -1,6 +1,7 @@
#compdef iostat
-local -a args
+local -a args parser
+parser=( -s -S -A '-*' )
case $OSTYPE:l in
*bsd*)
@@ -109,23 +110,32 @@ case $OSTYPE:l in
)
;;
*linux*)
+ parser=( -s )
args=(
'-c[display CPU utilization report]'
'-d[display device utilization report]'
- '-T[only display global statistics for group_name]'
- '-g[display statistics for a group of devices]:group name'
- '-h[human readable device utilization report]'
- '-j[display persistent device name]'
+ '*-g[display statistics for a group of devices]:group name'
+ '-H[only display global statistics for group]'
+ '(--human)-h[human readable device utilization report]'
+ '--human[print sizes in human readable format]'
+ '-j[display persistent device name]:name type:(ID LABEL PATH UUID)'
'(-m)-k[display statistics in kB/s]'
'(-k)-m[display statistics in MB/s]'
'-N[display registered device mapper names]'
+ '-o[display statistics in JSON]:format:(JSON)'
+ '-p[display statistics for block devices]'
+ '-t[display the time for each report]'
+ '(- *)-V[display version information]'
+ '-x[display extended statistics]'
+ '-y[omit first statistics report following system boot]'
+ '-z[omit output for devices lacking activity]'
'*::device:_files -W /dev -g "*(-%)"'
)
;;
esac
if (( $#args )); then
- _arguments -s -w -A '-*' : $args
+ _arguments $parser : $args
return
fi