contrib/zsh_completion
changeset 3605 9d815b074dcb
parent 3603 ef9c515836ae
child 3629 adbf440a81e0
equal deleted inserted replaced
3604:437489d8dfbf 3605:9d815b074dcb
    23 
    23 
    24   while (( i < $#words ))
    24   while (( i < $#words ))
    25   do
    25   do
    26     case "$words[$i]" in
    26     case "$words[$i]" in
    27       -R|--repository)
    27       -R|--repository)
    28         _hg_root="$words[$i+1]"
    28         eval _hg_root="$words[$i+1]"
    29         _hg_cmd_globals+=("$words[$i]" "$_hg_root")
    29         _hg_cmd_globals+=("$words[$i]" "$_hg_root")
    30         (( i += 2 ))
    30         (( i += 2 ))
    31         continue
    31         continue
    32       ;;
    32       ;;
    33       -R*)
    33       -R*)
    34         _hg_cmd_globals+="$words[$i]"
    34         _hg_cmd_globals+="$words[$i]"
    35         _hg_root="${words[$i]#-R}"
    35         eval _hg_root="${words[$i]#-R}"
    36        (( i++ ))
    36        (( i++ ))
    37        continue
    37        continue
    38       ;;
    38       ;;
    39       --cwd|--config)
    39       --cwd|--config)
    40         # pass along arguments to hg completer
    40         # pass along arguments to hg completer