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:
parent
951b945279
commit
a0233a74e3
5 changed files with 107 additions and 0 deletions
18
Completion/Unix/Command/_dtruss
Normal file
18
Completion/Unix/Command/_dtruss
Normal 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'
|
Loading…
Add table
Add a link
Reference in a new issue