about summary refs log tree commit diff
path: root/Completion/Unix/Type/_time_zone
blob: a7b63adcd2fab97d3fc85e5715e572699cf138e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#compdef -value-,TZ,-default-

local expl

if (( ! $+_zoneinfo_dirs )); then
  _zoneinfo_dirs=( /usr/{share,lib,share/lib}/{zoneinfo*,locale/TZ}(/) )
fi

_wanted time-zones expl 'time zone' \
  _files -g '[A-Z]*' -M 'm:{a-z}={A-Z}' -W _zoneinfo_dirs "$@" -