2018-08-25 11:27:22 +05:30

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
}