diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2009-06-15 15:03:19 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2009-06-15 15:03:19 +0000 |
commit | 186692d0992bc6cefcc157846a6f7b64dcc40b43 (patch) | |
tree | 6e14949bfc54f1c1496fcafb4d7ca4ec345cceae /shells/zsh/files/_fstat | |
parent | Fix the OPTIONS bit of EXTRA_PATCHES. (diff) |
Add some upstream completion patches + new completion files for
procstat, sockstat and fstat.
Submitted by: Baptiste Daroussin <baptiste.daroussin@gmail.com>
Diffstat (limited to 'shells/zsh/files/_fstat')
-rw-r--r-- | shells/zsh/files/_fstat | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/shells/zsh/files/_fstat b/shells/zsh/files/_fstat new file mode 100644 index 000000000000..553d07313c68 --- /dev/null +++ b/shells/zsh/files/_fstat @@ -0,0 +1,15 @@ +#compdef fstat + +local pids +pids=(${${${(f)"$(/usr/bin/procstat -ah)"}/[[:space:]]#/}/[[:space:]]*[[:space:]](ELF32[[: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' |