zsh-workers
 help / color / mirror / code / Atom feed
3e8d617334ff7f35e06325ce12a1198be848bac6 blob 675 bytes (raw)

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

local pids
pids=(${${${(f)"$(/usr/bin/procstat -ah)"}/[[:space:]]#/}/[[:space:]]*[[:space:]](ELF[[:digit:]]#[[:space:]]|-[[:space:]]#)/:})

_arguments -s \
'-f[restrict examination to files open in the same file systems as the named file arguments]' \
'-M[extract values associated with the name list from the specified core]:core:_files' \
'-N[extract the name list from the specified system]:system:' \
'-m[include memory-mapped files in the listing]' \
'-n[numerical format]' \
'-p[report all files open by the specified process]:process id:(($pids))' \
'-u[report all files open by the specified user]:user:_users' \
'-v[verbose mode]' \
'*:files:_files'
debug log:

solving 3e8d617 ...
found 3e8d617 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).