1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00
zsh/Completion/Linux/Command/_free
Jun-ichi Takimoto 3e542bcd81 44147: add/update completions for procps-ng
New completions for free, pmap, slabtop, tload. Update _top.
2019-03-22 09:23:42 +09:00

25 lines
1.2 KiB
Text

#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]'