zsh-workers
 help / color / mirror / code / Atom feed
* New Completion for FreeBSD's procstat
@ 2009-11-10 12:06 Baptiste Daroussin
  0 siblings, 0 replies; only message in thread
From: Baptiste Daroussin @ 2009-11-10 12:06 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 73 bytes --]

Hi 
here is another new completion for FreeBSD :
_procstat

regards
Bapt

[-- Attachment #2: _procstat --]
[-- Type: text/plain, Size: 697 bytes --]

#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))'

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-10 12:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-10 12:06 New Completion for FreeBSD's procstat Baptiste Daroussin

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).