Add fstat completion (complete) removes its entry in todo list
[zfbsd.git] / _procstat
blob476daa8212f9858c595756c89561eb45ce7d7615
1 #compdef procstat
3 local pids
4 #get list of pids and associated process name as comment
5 pids=(${${${(f)"$(/usr/bin/procstat -ah)"}/[[:space:]]#/}/[[:space:]]*[[:space:]](ELF32[[:space:]]|-[[:space:]]#)/:})
7 _arguments -s \
8 '-b[Display binary information for the process]' \
9 '-c[Display command line arguments for the process]' \
10 '-f[Display file descriptor information for the process]' \
11 '-k[Display the stacks of kernel threads in the process]' \
12 '-s[Display security credential information for the process]' \
13 '-t[Display thread information for the process]' \
14 '-v[Display virtual memory mappings for the process]' \
15 '-h[Suppress table headers.]' \
16 '-a[All processes]' \
17 ':Process id:(($pids))'