diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2009-11-12 19:34:34 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-11-12 19:34:34 +0000 |
| commit | ffa186098c9f52c0ad84f57a62937db4d183c1c9 (patch) | |
| tree | 5be50ec849b623c127dd05bec2f158676e1dae2c /Completion/BSD/Command/_fstat | |
| parent | Greg K: Replace 27377 with 27391. (diff) | |
| download | zsh-ffa186098c9f52c0ad84f57a62937db4d183c1c9.tar zsh-ffa186098c9f52c0ad84f57a62937db4d183c1c9.tar.gz zsh-ffa186098c9f52c0ad84f57a62937db4d183c1c9.tar.bz2 zsh-ffa186098c9f52c0ad84f57a62937db4d183c1c9.tar.lz zsh-ffa186098c9f52c0ad84f57a62937db4d183c1c9.tar.xz zsh-ffa186098c9f52c0ad84f57a62937db4d183c1c9.tar.zst zsh-ffa186098c9f52c0ad84f57a62937db4d183c1c9.zip | |
Baptiste Daroussin: 27379, 27381: BSD completions
Diffstat (limited to 'Completion/BSD/Command/_fstat')
| -rw-r--r-- | Completion/BSD/Command/_fstat | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Completion/BSD/Command/_fstat b/Completion/BSD/Command/_fstat new file mode 100644 index 000000000..81948b21d --- /dev/null +++ b/Completion/BSD/Command/_fstat @@ -0,0 +1,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' |
