configs/dot.zsh/kitty.compl.zsh
2019-09-06 14:48:35 +02:00

12 lines
239 B
Bash

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