diff options
author | Clint Adams <clint@users.sourceforge.net> | 2005-09-07 19:10:46 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2005-09-07 19:10:46 +0000 |
commit | 541dc6998e2384d7ce5130ccc5a25b8b8aa14dbf (patch) | |
tree | ff24bc19369869c61aec6387415e570846e05958 | |
parent | cb7cac776ca63d88a0c5c49157a463e165bda8b1 (diff) | |
download | zsh-541dc6998e2384d7ce5130ccc5a25b8b8aa14dbf.tar.gz zsh-541dc6998e2384d7ce5130ccc5a25b8b8aa14dbf.tar.xz zsh-541dc6998e2384d7ce5130ccc5a25b8b8aa14dbf.zip |
21704: completion for Solaris, and FreeBSD.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_date | 26 |
2 files changed, 30 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 6d496548c..d020f87a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-07 Clint Adams <clint@zsh.org> + + * 21704: Completion/Unix/Command/_date: completion for Solaris, + and FreeBSD. + 2005-09-06 Clint Adams <clint@zsh.org> * 21703: Completion/Unix/Command/_bzr: completion for bzr 0.0.7. diff --git a/Completion/Unix/Command/_date b/Completion/Unix/Command/_date index 929b35c84..be00a0f0a 100644 --- a/Completion/Unix/Command/_date +++ b/Completion/Unix/Command/_date @@ -1,6 +1,7 @@ #compdef date -_arguments \ +if _pick_variant -r is_gnu gnu="Free Software Foundation" unix --version; then + _arguments \ '-d[date]:time string:' \ '-f[file]:date file:_files' \ '-I[iso-8601]:time spec:' \ @@ -12,3 +13,26 @@ _arguments \ '*=FILE*:file:_files' \ '*=DATEFILE*:date file:_files' \ ':format or date:' +else + case "$OSTYPE" in + (solaris*) + _arguments \ + '-u[utc]' \ + '-a:adjustment:' \ + ':format or date:' + ;; + (freebsd*) + _arguments \ + '-u[utc]' \ + '-j[do not try to set date]' \ + '-n[only set time on current machine]' \ + '-d:daylight savingg time value:' \ + '-f:parsing format:' \ + '-r:seconds since epoch:' \ + '-t:minutes west of GMT:' \ + '-v:adjustment value:' \ + ':format or date:' + ;; + esac +fi + |