about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Unix/Command/_zdump6
-rw-r--r--Completion/Unix/Type/.distfiles2
-rw-r--r--Completion/Unix/Type/_time_zone9
-rw-r--r--Completion/Zsh/Context/_value2
5 files changed, 19 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 20143403c..2025a54b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-26  Oliver Kiddle  <opk@zsh.org>
+
+	* 16174: Completion/Unix/Command/_zdump,
+	Completion/Unix/Type/_time_zone, Completion/Zsh/Context/_value,
+	Completion/Unix/Type/.distfiles: complete value of $TZ
+
 2001-10-26  Peter Stephenson  <pws@csr.com>
 
 	* 16172: Src/Modules/tcp.c, Src/Modules/zftp.c: rename
diff --git a/Completion/Unix/Command/_zdump b/Completion/Unix/Command/_zdump
index 3f17cc1ef..1d186d4e3 100644
--- a/Completion/Unix/Command/_zdump
+++ b/Completion/Unix/Command/_zdump
@@ -1,9 +1,5 @@
 #compdef zdump
 
-if (( ! $+_zoneinfo_dirs )); then
-  _zoneinfo_dirs=( /usr/{share,lib,share/lib}/zoneinfo*(/) )
-fi
-
 _arguments '-v[lowest possible]' \
            '-c[cutoff]:cutoff year:' \
-           '*:timezone:_files -W _zoneinfo_dirs'
+           '*:timezone:_time_zone'
diff --git a/Completion/Unix/Type/.distfiles b/Completion/Unix/Type/.distfiles
index 2fa150d06..2d8162d13 100644
--- a/Completion/Unix/Type/.distfiles
+++ b/Completion/Unix/Type/.distfiles
@@ -7,5 +7,5 @@ _directories         _other_accounts      _printers            _urls
 _domains             _path_files          _ps                  _user_at_host
 _files               _pdf                 _pspdf               _users
 _groups              _perl_basepods       _signals             _users_on
-_hosts               _perl_builtin_funcs  _tar_archive
+_hosts               _perl_builtin_funcs  _tar_archive         _time_zone
 '
diff --git a/Completion/Unix/Type/_time_zone b/Completion/Unix/Type/_time_zone
new file mode 100644
index 000000000..0fed44040
--- /dev/null
+++ b/Completion/Unix/Type/_time_zone
@@ -0,0 +1,9 @@
+#compdef
+
+local expl
+
+if (( ! $+_zoneinfo_dirs )); then
+  _zoneinfo_dirs=( /usr/{share,lib,share/lib}/zoneinfo*(/) )
+fi
+
+_wanted timezone expl 'time zone' _files -W _zoneinfo_dirs
diff --git a/Completion/Zsh/Context/_value b/Completion/Zsh/Context/_value
index cb2675c0e..78e929316 100644
--- a/Completion/Zsh/Context/_value
+++ b/Completion/Zsh/Context/_value
@@ -60,4 +60,6 @@ _value:LDFLAGS () {
 
 _value:DISPLAY() { _x_display "$@" }
 
+_value:TZ() { _time_zone "$@" }
+
 _value "$@"