Merge branch 'zsh' of https://github.com/jereksel/cli into jereksel-zsh
This commit is contained in:
commit
1cbb9a7f30
@ -1,5 +1,11 @@
|
|||||||
autoload -U compinit && compinit
|
_cli_zsh_autocomplete() {
|
||||||
autoload -U bashcompinit && bashcompinit
|
|
||||||
|
|
||||||
script_dir=$(dirname $0)
|
local -a opts
|
||||||
source ${script_dir}/bash_autocomplete
|
opts=("${(@f)$(${words[@]:0:#words[@]-1} --generate-bash-completion)}")
|
||||||
|
|
||||||
|
_describe 'values' opts
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
compdef _cli_zsh_autocomplete $PROG
|
||||||
|
Loading…
Reference in New Issue
Block a user