summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_iostat
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2018-04-07 15:12:57 +0200
committerAxel Beckert <abe@deuxchevaux.org>2018-04-07 15:12:57 +0200
commit6e1ab9aa550695ee7e3d467b4173c0b83ba7f759 (patch)
tree8fb7faa4364a7cbf1cba48296a5f537e13f2a8d9 /Completion/Unix/Command/_iostat
parent5ad56a41f1ee2e61abca079f5ea8909f895ac2dd (diff)
parentf027f1d6e876708bc75d4217e1ca26898658d8d3 (diff)
downloadzsh-6e1ab9aa550695ee7e3d467b4173c0b83ba7f759.tar.gz
zsh-6e1ab9aa550695ee7e3d467b4173c0b83ba7f759.zip
Merge tag 'zsh-5.4.2-test-2' / 'upstream' branch into 'debian' branch
Test version 2 prior to zsh 5.5.
Diffstat (limited to 'Completion/Unix/Command/_iostat')
-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