Merge branch 'master' of github.com:penguincoder/dotfiles

pull/1/head
Andrew Coleman 2019-01-16 21:04:04 -05:00
commit cffe71ed45
1 changed files with 15 additions and 0 deletions

15
bin/kitty.completion.bash Normal file
View File

@ -0,0 +1,15 @@
_kitty_completions() {
local src
local limit
# Send all words up to the word the cursor is currently on
let limit=1+$COMP_CWORD
src=$(printf "%s
" "${COMP_WORDS[@]: 0:$limit}" | kitty +complete bash)
if [[ $? == 0 ]]; then
eval ${src}
fi
}
complete -o nospace -F _kitty_completions kitty