1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-16 12:21:18 +02:00
zsh/Completion/Linux/Command/_htop
2018-04-16 17:02:56 +02:00

11 lines
640 B
Text

#compdef htop
_arguments -S : \
'(-d --delay)'{-d+,--delay=}'[update frequency]:duration (tenths of seconds)' \
'(-C --no-color --no-colour)'{-C,--no-colo{,u}r}'[monochrome mode]' \
'(-)'{-h,--help}'[display usage information]' \
\*{-p+,--pid=}'[show given pids]: : _sequence -n ${$(</proc/sys/kernel/pid_max)\:-32768} _pids' \
'(-s --sort-key)'{-s+,--sort-key=}'[sort by key]:key:( ${(f)"$(_call_program sort-keys $words[1] --sort-key help)"} )' \
'(-t --tree)'{-t,--tree}'[show tree view of processes]' \
'(-u --user)'{-u+,--user=}'[show processes of user]: : _users' \
'(-)'{-v,--version}'[display version information]'