Implement `kitten __complete__ setup` in Go. Fix zsh completion script to check `kitten`.
8 lines
280 B
Plaintext
8 lines
280 B
Plaintext
#compdef kitty
|
|
|
|
(( ${+commands[kitten]} )) || builtin return
|
|
builtin local src cmd=${(F)words:0:$CURRENT}
|
|
# Send all words up to the word the cursor is currently on.
|
|
src=$(builtin command kitten __complete__ zsh "_matcher=$_matcher" <<<$cmd) || builtin return
|
|
builtin eval "$src"
|