about summary refs log tree commit diff
path: root/Completion/User/_zdump
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/User/_zdump')
-rw-r--r--Completion/User/_zdump9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/User/_zdump b/Completion/User/_zdump
new file mode 100644
index 000000000..2f9a010c1
--- /dev/null
+++ b/Completion/User/_zdump
@@ -0,0 +1,9 @@
+#compdef zdump
+
+if (( ! $+_zoneinfo_dirs )); then
+  _zoneinfo_dirs=(/usr/share/zoneinfo*(/) /usr/lib/zoneinfo*(/) /usr/share/lib/zoneinfo*(/))
+fi
+
+_arguments '-v[lowest possible]' \
+           '-c[cutoff]:cutoff year:' \
+           '*:timezone:_path_files -W $_zoneinfo_dirs'