1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00
zsh/Completion/Linux/Command/_slabtop
2025-01-27 23:06:16 +01:00

22 lines
688 B
Text

#compdef slabtop
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]' \
'--human[show human-readable output]' \
'(-)'{-V,--version}'[display version information and exit]' \
'(-)'{-h,--help}'[display usage information and exit]'