about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2015-07-31 11:18:23 +0200
committerOliver Kiddle <opk@zsh.org>2015-07-31 11:18:23 +0200
commit77a8cd73903b06e67b1f427b042a0a90b0191b84 (patch)
tree419ceaa9f1ed0a558e48899f5a8c1508a8558eee /Completion/Unix/Command
parentc0a80171ee615b52a15a6fc8efe83c2bb53451d2 (diff)
downloadzsh-77a8cd73903b06e67b1f427b042a0a90b0191b84.tar.gz
zsh-77a8cd73903b06e67b1f427b042a0a90b0191b84.tar.xz
zsh-77a8cd73903b06e67b1f427b042a0a90b0191b84.zip
35960 (tweaked): complete correct options for OpenBSD's find
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_find22
1 files changed, 13 insertions, 9 deletions
diff --git a/Completion/Unix/Command/_find b/Completion/Unix/Command/_find
index aefca34f2..e736f32cb 100644
--- a/Completion/Unix/Command/_find
+++ b/Completion/Unix/Command/_find
@@ -27,12 +27,12 @@ case $variant in
       '*-print0'
     )
   ;|
+  solaris*|freebsd*|dragonfly*|darwin*|gnu)
+    args+=( '*-mount' )
+  ;|
   netbsd*|freebsd*|dragonfly*|darwin*|gnu)
     args+=( '(-H -L)-P[never follow symlinks]' )
   ;|
-  netbsd*|freebsd*|dragonfly*|openbsd*|darwin*|gnu)
-    args+=( '-d[depth first traversal]' )
-  ;|
   darwin*|freebsd*|gnu)
     args+=(
       '*-Bmin:birth time (minutes)'
@@ -40,11 +40,13 @@ case $variant in
       '*-Btime:birth time (hours)'
     )
   ;|
-  freebsd*|dragonfly*|darwin*|openbsd*|gnu)
+  netbsd*|freebsd*|dragonfly*|openbsd*|darwin*|gnu)
     args+=(
+      '-d[depth first traversal]'
       '*-anewer:file to compare (access time):_files'
       '*-cnewer:file to compare (inode change time):_files'
-      '*-mnewer:file to compare (modification time):_files'
+      '*-empty'
+      '*-execdir:program: _command_names -e:*\;::program arguments: _normal'
       '*-maxdepth:maximum search depth'
       '*-mindepth:minimum search depth'
       '*-path:path pattern to search:'
@@ -53,8 +55,6 @@ case $variant in
   freebsd*|dragonfly*|darwin*|gnu)
     args+=(
       '*-delete'
-      '*-empty'
-      '*-execdir:program: _command_names -e:*\;::program arguments: _normal'
       '*-gid:numeric group ID'
       '*-uid:numeric user ID'
       '*-noleaf'
@@ -66,6 +66,7 @@ case $variant in
       '*-wholename:full path pattern to search' \
       '*-iwholename:full path pattern to search (case insensitive)'
       '*-ignore_readdir_race'
+      '*-mnewer:file to compare (modification time):_files'
       '*-noignore_readdir_race'
       '*-okdir:program: _command_names -e:*\;::program arguments: _normal'
       '*-samefile:file to compare inode:_files' \
@@ -80,9 +81,13 @@ case $variant in
   netbsd*|freebsd*|dragonfly*|darwin*)
     args+=(
       '-E[use extended regular expressions with -regex/-iregex]'
+      '-s[traverse directories in sorted order]'
+    )
+  ;|
+  netbsd*|freebsd*|dragonfly*|openbsd*|darwin*)
+    args+=(
       '-X[warn if filename contains characters special to xargs]'
       '-f[specify file hierarchy to traverse]:path:_directories'
-      '-s[traverse directories in sorted order]'
       "-x[don't span filesystems]"
       '*-flags:flags:_chflags'
     )
@@ -128,7 +133,6 @@ _arguments -C $args \
   '*-inum:inode number:' \
   '*-links:number of links:' \
   '*-ls' \
-  '*-mount' \
   '*-mtime:modification time (days):->times' \
   '*-name:name pattern' \
   '*-newer:file to compare (modification time):_files' \