about summary refs log tree commit diff
path: root/Completion/Darwin/Command/_sc_usage
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/Darwin/Command/_sc_usage
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/Darwin/Command/_sc_usage')
-rw-r--r--Completion/Darwin/Command/_sc_usage10
1 files changed, 10 insertions, 0 deletions
diff --git a/Completion/Darwin/Command/_sc_usage b/Completion/Darwin/Command/_sc_usage
new file mode 100644
index 000000000..3a11a1bff
--- /dev/null
+++ b/Completion/Darwin/Command/_sc_usage
@@ -0,0 +1,10 @@
+#compdef sc_usage
+
+_arguments -s -A '-*' : \
+  '-c+[specify code file to use]:code file:_files' \
+  '-e[sort output by call count]' \
+  '-l[use scrolling output style instead of window updating style]' \
+  '-s+[specify sampling interval]:seconds' \
+  '(- :)-E[specify command path and args to excute]: :_absolute_command_paths:*:: :_normal' \
+  '1: : _alternative "processes:: _pids"
+	"processes-names:: _process_names -a"'