urfave-cli/autocomplete/zsh_autocomplete
2019-10-06 01:58:51 -07:00

14 lines
238 B
Plaintext

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