summaryrefslogtreecommitdiffstats
path: root/Completion/Linux/Command/_sysstat
diff options
context:
space:
mode:
authorEric Cook <llua@gmx.com>2013-12-31 14:56:34 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2013-12-31 14:56:34 -0800
commitc744cfac023d913c7df61bf0fb2b4e9786ab7794 (patch)
tree7ac6dd396eb8ccc7a145d509cfe0b2d163281bcc /Completion/Linux/Command/_sysstat
parent32208: always reset pathchecked when the path array is modified (diff)
downloadzsh-c744cfac023d913c7df61bf0fb2b4e9786ab7794.tar
zsh-c744cfac023d913c7df61bf0fb2b4e9786ab7794.tar.gz
zsh-c744cfac023d913c7df61bf0fb2b4e9786ab7794.tar.bz2
zsh-c744cfac023d913c7df61bf0fb2b4e9786ab7794.tar.lz
zsh-c744cfac023d913c7df61bf0fb2b4e9786ab7794.tar.xz
zsh-c744cfac023d913c7df61bf0fb2b4e9786ab7794.tar.zst
zsh-c744cfac023d913c7df61bf0fb2b4e9786ab7794.zip
32210: completion for the sysstat suite
Diffstat (limited to 'Completion/Linux/Command/_sysstat')
-rw-r--r--Completion/Linux/Command/_sysstat150
1 files changed, 150 insertions, 0 deletions
diff --git a/Completion/Linux/Command/_sysstat b/Completion/Linux/Command/_sysstat
new file mode 100644
index 000000000..60de9d899
--- /dev/null
+++ b/Completion/Linux/Command/_sysstat
@@ -0,0 +1,150 @@
+#compdef -P mpstat (|cifs)iostat isag sadf sar pidstat
+# -V can appear with other options, so (- *) isn't needed.
+#TODO:
+# sysstat-nfsiostat - there seems to be two nfsiostat(1)s. one from oracle and one by redhat.
+
+_mpstat() {
+ local ret=1
+ _arguments : \
+ '-A[equivalent to -u -I ALL -P ALL]' \
+ '-I[report interrupt statistics]:interrupts:(SUM CPU SCPU ALL)' \
+ '-P[specify processor number]:processor: _values -s "," processor ON ALL' \
+ '-u[report CPU utilization]' \
+ '-V[print version number]' \
+ '1:interval:_guard "[0-9]#" "interval"' \
+ '2:count:_guard "[0-9]#" "count"' && ret=0
+ return ret
+}
+