zsh-workers
 help / color / mirror / code / Atom feed
f8bc542908810a8150678f78f1d9777e328ffc4b blob 706 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
#compdef procstat

local pids
#get list of pids and associated process name as comment
pids=(${${${(f)"$(/usr/bin/procstat -ah)"}/[[:space:]]#/}/[[:space:]]*[[:space:]](ELF[[:digit:]]#[[: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))'
debug log:

solving f8bc542 ...
found f8bc542 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).