1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

43079, 43086: new utility to complete names of running processes

And new completions for dtruss, fs_usage and sc_usage.
This commit is contained in:
Jun-ichi Takimoto 2018-06-25 11:04:31 +09:00
parent 951b945279
commit a0233a74e3
5 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#compdef dtruss
_arguments -s : \
'-a[print all details]' \
'-b+[specify dynamic variable buffer size]:buffer size (default 4m)' \
'-c[print system call counts]' \
'-d[print relative timestamps]' \
'-e[print elapsed times]' \
'-f[follow children as they are forked]' \
'-l[force printing of pid/lwpid per line]' \
"-L[don't print pid/lwpid per line]" \
'(-p :)-n+[examine processes with the specified name]: : _process_names -a' \
'-o[print on-cpu times]' \
'-s[print stack backtraces]' \
'(-n :)-p+[examine process with the specified pid]: : _pids' \
'-t+[examine only the specified syscall]: : _sys_calls' \
'1: : _command_names -e' \
'*:: : _normal'