#compdef ctr # This file is a direct copy of https://github.com/urfave/cli/blob/a221e662f14fd7404302444a5c4293409a401210/autocomplete/zsh_autocomplete # With $PROG changed to ctr _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 ctr