diff options
author | Oliver Kiddle <opk@zsh.org> | 2025-01-27 23:00:17 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2025-01-27 23:00:17 +0100 |
commit | 87aba4d437f5fef46917c1235c00b9162d7bcbd0 (patch) | |
tree | ce578175d1248d14b8237ad86121b9396550c226 /Completion/Unix/Command/_date | |
parent | db01c79cf83290b9ac9d77e66d832551b7022f71 (diff) | |
download | zsh-87aba4d437f5fef46917c1235c00b9162d7bcbd0.tar.gz zsh-87aba4d437f5fef46917c1235c00b9162d7bcbd0.zip |
53325: cover newer BSD releases in completion
Diffstat (limited to 'Completion/Unix/Command/_date')
-rw-r--r-- | Completion/Unix/Command/_date | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_date b/Completion/Unix/Command/_date index f0053ec02..f70fc3722 100644 --- a/Completion/Unix/Command/_date +++ b/Completion/Unix/Command/_date @@ -37,7 +37,10 @@ else ) ;| freebsd*|dragonfly*|darwin*|netbsd*) - args+=( '-n[only set time on current machine]' ) + args+=( + '-n[only set time on current machine]' + '-R[display in RFC2822 format]' + ) ;| freebsd*|dragonfly*|darwin*|openbsd*) args+=( @@ -61,11 +64,14 @@ else ;| freebsd*|dragonfly*|darwin*) args+=( - '-R[display in RFC2822 format]' - '(-R)-I-[display in ISO 8601 format]::precision [date]:(date hours minutes seconds)' "*-v+[adjust and print (but don't set) date]:[+-]value[ymwdHMS]" ) ;| + dragonfly*|darwin*) + args+=( + '(-R)-I-[display in ISO 8601 format]::precision [date]:(date hours minutes seconds)' + ) + ;| freebsd<-12>.*) args+=( '-d+:daylight saving time value' @@ -77,6 +83,11 @@ else freebsd<14->.*|openbsd*) args+=( '-z+[specify timezone for output]:time zone:_time_zone') ;| + freebsd*) + args+=( + '(-R)-I-[display in ISO 8601 format]::precision [date]:(date hours minutes seconds ns)' + ) + ;| netbsd*) args+=( '-d[output date specified by string]:time string:' ) ;; |