Mercurial > hg > mercurial-crew-with-dirclash
comparison contrib/zsh_completion @ 3597:0d253ec988a6
zsh: complete unknown commands normally
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 31 Oct 2006 12:05:47 -0800 |
parents | c8494fcc9d39 |
children | 27121416f9a8 |
comparison
equal
deleted
inserted
replaced
3596:0611e851b9db | 3597:0d253ec988a6 |
---|---|
78 | 78 |
79 if (( $+functions[_hg_cmd_${cmd}] )) | 79 if (( $+functions[_hg_cmd_${cmd}] )) |
80 then | 80 then |
81 curcontext="${curcontext%:*:*}:hg-${cmd}:" | 81 curcontext="${curcontext%:*:*}:hg-${cmd}:" |
82 _hg_cmd_${cmd} | 82 _hg_cmd_${cmd} |
83 return | 83 else |
84 # complete unknown commands normally | |
85 _arguments -s -w : $_hg_global_opts \ | |
86 '*:files:_files -W $(_hg_cmd root)' | |
84 fi | 87 fi |
85 } | 88 } |
86 | 89 |
87 _hg_get_commands() { | 90 _hg_get_commands() { |
88 typeset -ga _hg_cmd_list | 91 typeset -ga _hg_cmd_list |