about summary refs log tree commit diff
path: root/Completion/Unix/Command/_dtruss
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2018-06-25 11:04:31 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2018-06-25 11:09:14 +0900
commita0233a74e3677941f07bf4efba3cbd6fd3e9b918 (patch)
tree6e985fc72e3a35be58ca31d9c198fbcd8f17d814 /Completion/Unix/Command/_dtruss
parent951b94527924a5fa0c88c5facaa4c86682efbc8d (diff)
downloadzsh-a0233a74e3677941f07bf4efba3cbd6fd3e9b918.tar.gz
zsh-a0233a74e3677941f07bf4efba3cbd6fd3e9b918.tar.xz
zsh-a0233a74e3677941f07bf4efba3cbd6fd3e9b918.zip
43079, 43086: new utility to complete names of running processes
And new completions for dtruss, fs_usage and sc_usage.
Diffstat (limited to 'Completion/Unix/Command/_dtruss')
-rw-r--r--Completion/Unix/Command/_dtruss18
1 files changed, 18 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_dtruss b/Completion/Unix/Command/_dtruss
new file mode 100644
index 000000000..bd1ae8bc5
--- /dev/null
+++ b/Completion/Unix/Command/_dtruss
@@ -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'