about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-10-11 01:24:01 +0200
committerOliver Kiddle <opk@zsh.org>2017-10-11 01:24:01 +0200
commit61b544a06832eb29035fb95a6bd942f77881300a (patch)
tree1f3d7051a8ea41b7a8320063e6454e461104384d /Completion/Unix
parenta8c2b908107fb658e3859ce8f3d61f2c31354227 (diff)
downloadzsh-61b544a06832eb29035fb95a6bd942f77881300a.tar.gz
zsh-61b544a06832eb29035fb95a6bd942f77881300a.tar.xz
zsh-61b544a06832eb29035fb95a6bd942f77881300a.zip
41855: completion option updates for OpenBSD 6.2 and handle macOS in rm completion
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_dhclient2
-rw-r--r--Completion/Unix/Command/_id5
-rw-r--r--Completion/Unix/Command/_rm10
3 files changed, 12 insertions, 5 deletions
diff --git a/Completion/Unix/Command/_dhclient b/Completion/Unix/Command/_dhclient
index a9f06d81f..af38a28e6 100644
--- a/Completion/Unix/Command/_dhclient
+++ b/Completion/Unix/Command/_dhclient
@@ -7,13 +7,13 @@ case $OSTYPE in
     args+=(
       '-c+[specify configuration file]:file:_files'
       '-l+[specify leases file]:file:_files'
-      '-u[reject leases with unknown options]'
     )
   ;|
   freebsd*)
     args+=(
       '(-d)-b[immediately move to the background]'
       '-p+[specify PID file]:file:_files'
+      '-u[reject leases with unknown options]'
     )
   ;;
   openbsd*)
diff --git a/Completion/Unix/Command/_id b/Completion/Unix/Command/_id
index 74fe6d9e1..95580ba76 100644
--- a/Completion/Unix/Command/_id
+++ b/Completion/Unix/Command/_id
@@ -16,7 +16,7 @@ if _pick_variant gnu=GNU $OSTYPE --version; then
     '(- :)--version[display version]' \
     ':user:_users'
 else
-  choices="-A -a -c -G -g -M -p -P -u"
+  choices="-A -a -c -G -g -M -p -P -R -u"
   args=(
     "($choices)-g[print only EGID]"
     "($choices -r)-G[print all GIDs]"
@@ -31,6 +31,9 @@ else
 	'(-g -G -u -n -r)-p[show project membership]'
       )
     ;;
+    openbsd*)
+      args+=( '(-)-R[display the routing table of the current process]' )
+    ;;
     darwin*|dragonfly*|freebsd*)
       args+=( '(-)-P[print id in the form of a password file entry]' )
     ;|
diff --git a/Completion/Unix/Command/_rm b/Completion/Unix/Command/_rm
index 6d728b157..912b5eadf 100644
--- a/Completion/Unix/Command/_rm
+++ b/Completion/Unix/Command/_rm
@@ -24,16 +24,20 @@ if _pick_variant gnu=gnu unix --help; then
 else
   args=(${args:#*)--*\[*})
   case $OSTYPE in
-    dragonfly*|freebsd*|netbsd*|openbsd*)
+    darwin*|dragonfly*|freebsd*|netbsd*|openbsd*)
       args+=(
         '-d[remove directories as well]'
         '-P[overwrite files before deleting them]'
+        '-v[explain what is being done]'
       )
     ;|
-    dragonfly*|freebsd*|netbsd*)
+    darwin*|dragonfly*|freebsd*|netbsd*)
       args+=(
-        '-v[explain what is being done]'
         '-W[attempt to undelete named files]'
+      )
+    ;|
+    dragonfly*|freebsd*|netbsd*)
+      args+=(
         "-x[don't cross file systems when removing a hierarchy]"
       )
     ;|