about summary refs log tree commit diff
path: root/Completion/Linux/Command/_slabtop
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2019-03-22 09:23:42 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2019-03-22 09:23:42 +0900
commit3e542bcd818c57785aa4cc7c5e6be3b92118fb7d (patch)
tree176dbca48926f59e14db25179f437cca83a87de9 /Completion/Linux/Command/_slabtop
parent3e67e8347c77c6f455216fc114c6a26f6859bc68 (diff)
downloadzsh-3e542bcd818c57785aa4cc7c5e6be3b92118fb7d.tar.gz
zsh-3e542bcd818c57785aa4cc7c5e6be3b92118fb7d.tar.xz
zsh-3e542bcd818c57785aa4cc7c5e6be3b92118fb7d.zip
44147: add/update completions for procps-ng
New completions for free, pmap, slabtop, tload. Update _top.
Diffstat (limited to 'Completion/Linux/Command/_slabtop')
-rw-r--r--Completion/Linux/Command/_slabtop22
1 files changed, 22 insertions, 0 deletions
diff --git a/Completion/Linux/Command/_slabtop b/Completion/Linux/Command/_slabtop
new file mode 100644
index 000000000..5c8919d12
--- /dev/null
+++ b/Completion/Linux/Command/_slabtop
@@ -0,0 +1,22 @@
+#compdef slabtop
+# based on procps-ng-3.3.15
+
+local -a criteria=(
+  'a:number of active objects'
+  'b:objects per slab'
+  'c:cache size'
+  'l:number of slabs'
+  'v:number of active slabs'
+  'n:name'
+  'o:number of objects'
+  'p:page per slab'
+  's:object size'
+  'u:cache utilization'
+)
+
+_arguments -s \
+  '(-d --delay -o --once)'{-d+,--delay=}'[specify the delay between updates]:seconds: ' \
+  '(-s --sort)'{-s+,--sort=}'[specify the sort criteria]:criteria:(($criteria))' \
+  '(-d --delay -o --once)'{-o,--once}'[display the output once and exit]' \
+  '(-)'{-V,--version}'[display version information and exit]' \
+  '(-)'{-h,--help}'[display usage information and exit]'