summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2012-11-16 23:01:06 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2012-11-16 23:01:06 +0000
commitee040c6ba56a9ed22ed70cf429730cd59ed34954 (patch)
treee1543faff5d42683bca5ca278c388d7b4c811584 /Completion/Unix/Command
parent1f359ae462dc5b19d04706e88195297eb2777d3f (diff)
downloadzsh-ee040c6ba56a9ed22ed70cf429730cd59ed34954.tar.gz
zsh-ee040c6ba56a9ed22ed70cf429730cd59ed34954.tar.xz
zsh-ee040c6ba56a9ed22ed70cf429730cd59ed34954.zip
30802: add new command switches
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_find27
1 files changed, 19 insertions, 8 deletions
diff --git a/Completion/Unix/Command/_find b/Completion/Unix/Command/_find
index 3c21dcc94..33767c080 100644
--- a/Completion/Unix/Command/_find
+++ b/Completion/Unix/Command/_find
@@ -1,18 +1,23 @@
 #compdef find
 
 _arguments \
+  '(- *)-help' '(-)--help' \
+  '(- *)-version' '(-)--version' \
+  '(-L -P)-H[only follow symlinks when resolving command-line arguments]' \
+  '(-H -P)-L[follow symlinks]' \
+  '(-H -L)-P[never follow symlinks]' \
+  '-D[print diagnostics]:deb option:(help tree search stat rates opt exec)' \
+  '-O+[enable query optimisation]:level:(1 2 3)' \
   '*-daystart' \
-  '*-depth' \
+  '*-d' '*-depth' \
   '*-follow' \
-  '*-help' \
-  '*-ignore_readdir_race' \
-  '*-maxdepth:maximum search depth:' \
-  '*-mindepth:minimum search depth:' \
+  '(-noignore_readdir_race)-ignore_readdir_race' \
+  '*-maxdepth:maximum search depth' \
+  '*-mindepth:minimum search depth' \
   '*-mount' \
-  '*-noignore_readdir_race' \
+  '(-ignore_readdir_race)-noignore_readdir_race' \
   '*-noleaf' \
-  '*-regextype:regexp syntax:(emacs posix-awk posix-basic posix-egrep posix-extended)' \
-  '*-version' \
+  '-regextype:regexp syntax:(emacs posix-awk posix-basic posix-egrep posix-extended)' \
   '*-warn' \
   '*-nowarn' \
   '*-xdev' \
@@ -27,6 +32,7 @@ _arguments \
   '*-newer:file to compare (modification time):_files' \
   '*-used:access after inode change (days):' \
   '*-empty' \
+  '*-executable' \
   '*-false' \
   '*-fstype:file system type:_file_systems' \
   '*-gid:numeric group ID:' \
@@ -48,6 +54,8 @@ _arguments \
   '*-nouser' \
   '*-nogroup' \
   '*-perm:file permission bits:' \
+  '*-readable' \
+  '*-writable' \
   '*-size:file size:' \
   '*-samefile:same inode as:_files' \
   '*-true' \
@@ -68,4 +76,7 @@ _arguments \
   '*-prune' \
   '*-quit' \
   '*-ls' \
+  '*-and' '*-a' \
+  '*-or' '*-o' \
+  '*-not' \
   '*:directory:_files -/'