From: a-sk Date: Thu, 4 Jul 2013 04:01:44 +0000 (+0400) Subject: Complete on git subcommands X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/d8b4fecc8ee4a725eb10d200f3aea92f0bc3a915 Complete on git subcommands --- diff --git a/_vcsh b/_vcsh index 2367fb4..926dbc5 100644 --- a/_vcsh +++ b/_vcsh @@ -114,8 +114,7 @@ function _vcsh () { if ! (( ${+functions[_vcsh-$vcshcommand]} )); then # There is no handler function, so this is probably the name # of a repository. Act accordingly. - _message "git sub-command" - #TODO and now we need to complete on git subcommands + _dispatch git git else curcontext="${curcontext%:*:*}:vcsh-${vcshcommand}:" _call_function ret _vcsh-${vcshcommand}