summary refs log tree commit diff
path: root/Completion/Linux/Command/_free
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/_free
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/_free')
-rw-r--r--Completion/Linux/Command/_free25
1 files changed, 25 insertions, 0 deletions
diff --git a/Completion/Linux/Command/_free b/Completion/Linux/Command/_free
new file mode 100644
index 000000000..cc5bcf3bd
--- /dev/null
+++ b/Completion/Linux/Command/_free
@@ -0,0 +1,25 @@
+#compdef free
+# based on procps-ng-3.3.15
+
+_arguments -s \
+  '(-l --lohi)'{-l,--lohi}'[show detailed low and high memory statistics]' \
+  '(-t --total)'{-t,--total}'[show total for RAM + swap]' \
+  '(-w --wide)'{-w,--wide}'[wide mode]' \
+  '(-s --seconds)'{-s,--seconds}'[specify the delay between display]:seconds: ' \
+  '(-c --count)'{-c+,--count=}'[specify the display count]:count: ' \
+  '--si[use power of 1000 instead of power of 1024]' \
+  '(-)--help[print help and exit]' \
+  '(-)'{-V,--version}'[print version information and exit]' \
+  + '(unit)' \
+  {-b,--bytes}'[display the amount of memory in bytes]' \
+  {-k,--kibi}'[display the amount of memory in kibibytes (default)]' \
+  {-m,--mebi}'[display the amount of memory in mebibytes]' \
+  {-g,--gibi}'[display the amount of memory in gibibytes]' \
+  '--tebi[display the amount of memory in tebibytes]' \
+  '--pebi[display the amount of memory in pebibytes]' \
+  '(--si)--kilo[display the amount of memory in kilobytes]' \
+  '(--si)--mega[display the amount of memory in megabytes]' \
+  '(--si)--giga[display the amount of memory in gigabytes]' \
+  '(--si)--tera[display the amount of memory in terabytes]' \
+  '(--si)--peta[display the amount of memory in petabytes]' \
+  {-h,--human}'[automatically select unit]'