From 290a17f504293f80b54bb8960293e6bc0cfacb19 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 26 Oct 2007 18:13:22 -0700 Subject: add "allowed" and "help" for completion --- templates/system/time-zone/node.def | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'templates/system/time-zone/node.def') diff --git a/templates/system/time-zone/node.def b/templates/system/time-zone/node.def index 22a2921e..72ca791e 100644 --- a/templates/system/time-zone/node.def +++ b/templates/system/time-zone/node.def @@ -14,3 +14,17 @@ case \"$(@)\" in \ esac && \ sudo ln -fs \\\$LTF /etc/localtime" delete: "sudo ln -fs /usr/share/zoneinfo/GMT /etc/localtime" +#allowed: local -a list=( "Los Angeles" "New York" "Denver" "Chicago" \ +# "Anchorage" "Honolulu" "Phoenix" "GMT" ) +# for (( i = -1; i > -13; i-- )); do +# list[${#list[@]}]="GMT$i"; +# done +# for (( i = 1; i < 13; i++ )); do +# list[${#list[@]}]="GMT+$i"; +# done +# for zone in "${list[@]}"; do +# echo \"$zone\" +# done +#comp_help:Enter one of the following time zones: +# Honolulu Anchorage Los Angeles Phoenix Denver Chicago New York +# GMT GMT-1 ... GMT-12 GMT+1 ... GMT+12 -- cgit v1.2.3