Add a hack so that zsh completion only runs for zsh
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
_cli_zsh_autocomplete() {
|
||||
|
||||
local -a opts
|
||||
opts=("${(@f)$(${words[@]:0:#words[@]-1} --generate-bash-completion)}")
|
||||
opts=("${(@f)$(_CLI_ZSH_AUTOCOMPLETE_HACK=1 ${words[@]:0:#words[@]-1} --generate-bash-completion)}")
|
||||
|
||||
_describe 'values' opts
|
||||
|
||||
|
Reference in New Issue
Block a user