comparison contrib/zsh_completion @ 3605:9d815b074dcb

zsh: perform ~ expansion on _hg_root
author Brendan Cully <brendan@kublai.com>
date Tue, 31 Oct 2006 17:31:30 -0800
parents ef9c515836ae
children adbf440a81e0
comparison
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