1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#autoload +X local tmp if zstyle -s ":completion:${curcontext}:${1}" command tmp; then if [[ "$tmp" = -* ]]; then eval "$tmp[2,-1]" "$argv[2,-1]" else eval "$tmp" fi else eval "$argv[2,-1]" fi return $?