contrib/zsh_completion
changeset 3597 0d253ec988a6
parent 3587 c8494fcc9d39
child 3598 27121416f9a8
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