Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: completion updates for some Unix utilities on macOS
- X-seq: zsh-workers 53969
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: completion updates for some Unix utilities on macOS
- Date: Thu, 25 Sep 2025 00:43:31 +0200
- Archived-at: <https://zsh.org/workers/53969>
- List-id: <zsh-workers.zsh.org>
These updates are based on macOS 15.5 which isn't the latest but that
was the version on the Apple system I was briefly able to gain access
to. This is based on diffs of help output.
Oliver
diff --git a/Completion/Unix/Command/_date b/Completion/Unix/Command/_date
index f70fc3722..6cc2d42cb 100644
--- a/Completion/Unix/Command/_date
+++ b/Completion/Unix/Command/_date
@@ -69,7 +69,7 @@ else
;|
dragonfly*|darwin*)
args+=(
- '(-R)-I-[display in ISO 8601 format]::precision [date]:(date hours minutes seconds)'
+ '(-R)-I-[display in ISO 8601 format]::precision [date]:(date hours minutes seconds ns)'
)
;|
freebsd<-12>.*)
@@ -80,7 +80,7 @@ else
;|
openbsd*|netbsd*) args+=( '-a[gradually skew]' )
;|
- freebsd<14->.*|openbsd*)
+ darwin*|freebsd<14->.*|openbsd*)
args+=( '-z+[specify timezone for output]:time zone:_time_zone')
;|
freebsd*)
diff --git a/Completion/Unix/Command/_env b/Completion/Unix/Command/_env
index 89a45e4a4..7d86f4fd2 100644
--- a/Completion/Unix/Command/_env
+++ b/Completion/Unix/Command/_env
@@ -29,11 +29,11 @@ case $variant in
'-U[add variables from user and system login.conf(5)]: :->user-class'
)
;|
- freebsd*|netbsd*)
- args+=( '-C+[change working directory]:directory:_directories' )
- ;|
- freebsd*|darwin*|netbsd*)
- args+=( '-0[use NUL, not newline after each variable in output]' )
+ darwin*|freebsd*|netbsd*)
+ args+=(
+ '-C+[change working directory]:directory:_directories'
+ '-0[use NUL, not newline after each variable in output]'
+ )
;|
freebsd*|darwin*|dragonfly*|netbsd*|openbsd*)
args+=(
diff --git a/Completion/Unix/Command/_ping b/Completion/Unix/Command/_ping
index 95e1fd604..09e5ed1f6 100644
--- a/Completion/Unix/Command/_ping
+++ b/Completion/Unix/Command/_ping
@@ -183,6 +183,8 @@ case ${variant}:${${service#ping}:-4} in
'-k+[specify traffic class to use for sending ICMP packets]:traffic class [CTL]:(BK_SYS BK BE RD OAM AV RV VI VO CTL)'
'--apple-connect[connects the socket to the destination address]'
'--apple-time[prints the time a packet was received]'
+ '--apple-print-id[display echo ID]'
+ '--apple-print-req[display echo request]'
)
;;
openbsd*)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author