4 #get list of pids and associated process name as comment
5 pids=(${${${(f)"$(/usr/bin/procstat -ah)"}/[[:space:]]#/}/[[:space:]]*[[:space:]](ELF32[[:space:]]|-[[:space:]]#)/:})
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.]' \
17 ':Process id:(($pids))'