diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2009-06-15 15:03:19 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2009-06-15 15:03:19 +0000 |
commit | 186692d0992bc6cefcc157846a6f7b64dcc40b43 (patch) | |
tree | 6e14949bfc54f1c1496fcafb4d7ca4ec345cceae /shells/zsh/files/_procstat | |
parent | Fix the OPTIONS bit of EXTRA_PATCHES. (diff) |
Add some upstream completion patches + new completion files for
procstat, sockstat and fstat.
Submitted by: Baptiste Daroussin <baptiste.daroussin@gmail.com>
Diffstat (limited to 'shells/zsh/files/_procstat')
-rw-r--r-- | shells/zsh/files/_procstat | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/shells/zsh/files/_procstat b/shells/zsh/files/_procstat new file mode 100644 index 000000000000..476daa8212f9 --- /dev/null +++ b/shells/zsh/files/_procstat @@ -0,0 +1,17 @@ +#compdef procstat + +local pids +#get list of pids and associated process name as comment +pids=(${${${(f)"$(/usr/bin/procstat -ah)"}/[[:space:]]#/}/[[:space:]]*[[:space:]](ELF32[[:space:]]|-[[:space:]]#)/:}) + +_arguments -s \ +'-b[Display binary information for the process]' \ +'-c[Display command line arguments for the process]' \ +'-f[Display file descriptor information for the process]' \ +'-k[Display the stacks of kernel threads in the process]' \ +'-s[Display security credential information for the process]' \ +'-t[Display thread information for the process]' \ +'-v[Display virtual memory mappings for the process]' \ +'-h[Suppress table headers.]' \ +'-a[All processes]' \ +':Process id:(($pids))' |