summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_lsof
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-01-07 08:48:32 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-01-07 08:48:32 +0000
commit11207a7e48e1a2467a734706d2524c44f42843c4 (patch)
tree46b4602895214f445a51352af029e93ae6e6bc84 /Completion/Unix/Command/_lsof
parent18015: empty math parse acts like zero (diff)
downloadzsh-11207a7e48e1a2467a734706d2524c44f42843c4.tar
zsh-11207a7e48e1a2467a734706d2524c44f42843c4.tar.gz
zsh-11207a7e48e1a2467a734706d2524c44f42843c4.tar.bz2
zsh-11207a7e48e1a2467a734706d2524c44f42843c4.tar.lz
zsh-11207a7e48e1a2467a734706d2524c44f42843c4.tar.xz
zsh-11207a7e48e1a2467a734706d2524c44f42843c4.tar.zst
zsh-11207a7e48e1a2467a734706d2524c44f42843c4.zip
new completion functions for lsof, mt and xsltproc
Diffstat (limited to 'Completion/Unix/Command/_lsof')
-rw-r--r--Completion/Unix/Command/_lsof44
1 files changed, 44 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_lsof b/Completion/Unix/Command/_lsof
new file mode 100644
index 000000000..0e3bc7a1b
--- /dev/null
+++ b/Completion/Unix/Command/_lsof
@@ -0,0 +1,44 @@
+#compdef lsof
+
+_arguments -s -S \
+ '(-)'{-\?,-h}'[list help]' \
+ '-a[AND selections]' \
+ '-b[avoid kernel blocks]' \
+ '-C[disable reporting of path name components]' \
+ '-c[list files for command beginning with specified char]:char' \
+ '+d[search for open instances for contents of specified dir]:search directory:_files -/' \
+ '-d[specify list of file descriptors to exclude/include]:file descriptors' \
+ '+D[recursively search from specified dir]:search directory:_files -/' \
+ '-D[direct use of device cache file]:function:((\?\:report\ device\ cache\ file\ paths b\:build\ the\ device\ cache\ file i\:ignore\ the\ device\ cache\ file r\:read\ the\ device\ cache\ file u\:read\ and\ update\ the\ device\ cache\ file))' \
+ '-f[inhibit listing of kernel file structure info]::info type or path' \
+ '+f[enable listing of kernel file structure info]::info type' \
+ '-F[select output fields]:fields' \
+ '-g[select by process group id]::process group id' \
+ '*-i[select internet files]:address' \
+ '-k[specify kernel name list file]:kernel file:_files' \
+ '-l[inhibit conversion of UIDs to user names]' \
+ '-L[list no link counts]' \
+ '+L[list all link counts]::max link count for listed files' \
+ '-m[specify kernel memory file]:kernel memory file:_files' \
+ '-M[disable reporting of portmapper registrations]' \
+ '+M[enable reporting of portmapper registrations]' \
+ '-n[inhibit conversion of network numbers to hostnames]' \
+ '-N[select listing of NFS files]' \
+ '(-s)-o[list file offset]' \
+ '-O[avoid overheads of bypassing potential blocking]' \