11 lines
232 B
Plaintext
11 lines
232 B
Plaintext
#compdef kitty
|
|
|
|
_kitty() {
|
|
local src
|
|
# Send all words upto the word the cursor is currently on
|
|
src=$(printf "%s\n" "${(@)words[1,$CURRENT]}" | kitty +complete zsh)
|
|
if [[ $? == 0 ]]; then
|
|
eval ${src}
|
|
fi
|
|
}
|