urfave-cli/autocomplete/zsh_autocomplete
2016-07-21 08:47:59 +02:00

12 lines
193 B
Plaintext

_cli_zsh_autocomplete() {
local -a opts
opts=("${(@f)$(${words[@]:0:#words[@]-1} --generate-bash-completion)}")
_describe 'values' opts
return
}
compdef _cli_zsh_autocomplete $PROG