fish-shell/share/completions/kitty.fish

8 lines
271 B
Fish
Raw Normal View History

2022-06-05 20:46:38 +08:00
function __ksi_completions
set --local ct (commandline --current-token)
set --local tokens (commandline --tokenize --cut-at-cursor --current-process)
printf "%s\n" $tokens $ct | command kitty +complete fish2
end
2022-06-05 20:46:38 +08:00
complete -f -c kitty -a "(__ksi_completions)"