diff options
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_zdump | 6 | ||||
-rw-r--r-- | Completion/Unix/Type/.distfiles | 2 | ||||
-rw-r--r-- | Completion/Unix/Type/_time_zone | 9 |
3 files changed, 11 insertions, 6 deletions
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 |