Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: update completions for DragonflyBSD



I know it'd be more widely useful to update for, e.g. macOS but I'd hope
someone else might want to do that. I have enough access to macs to have
captured diffs on help output up to 11.2 and if someone wants, I'd be
happy to send them if that's easier than making sense of the git repo.

This is current up to Dragonfly 5.8.3. Given cross-pollination of
changes between BSDs, these tend not to be too much effort to pick up.

Oliver

diff --git a/Completion/Unix/Command/_date b/Completion/Unix/Command/_date
index 68bd357fb..dc447e06d 100644
--- a/Completion/Unix/Command/_date
+++ b/Completion/Unix/Command/_date
@@ -60,10 +60,14 @@ else
       )
     ;|
     freebsd*|dragonfly*|darwin*)
+      args+=(
+	"*-v+[adjust and print (but don't set) date]:[+-]value[ymwdHMS]"
+      )
+    ;|
+    freebsd*|darwin*)
       args+=(
 	'-d+:daylight saving time value'
 	'-t+:minutes west of GMT'
-	"*-v+[adjust and print (but don't set) date]:[+-]value[ymwdHMS]"
       )
     ;|
     freebsd*|dragonfly*)
diff --git a/Completion/Unix/Command/_xargs b/Completion/Unix/Command/_xargs
index f21784ef1..8e23a04bb 100644
--- a/Completion/Unix/Command/_xargs
+++ b/Completion/Unix/Command/_xargs
@@ -25,7 +25,7 @@ case $variant in
       '-R[specify maximum arguments that -I will replace in]:replacements'
     )
   ;|
-  freebsd*|netbsd*)
+  freebsd*|netbsd*|dragonfly*)
     args+=(
       '-S[space that -I can use for replacements]:size (bytes) [255]'
     )





Messages sorted by: Reverse Date, Date, Thread, Author