mirror of https://github.com/nkoehring/configs.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
239 B
Bash
13 lines
239 B
Bash
5 years ago
|
|
||
|
_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
|
||
|
|