mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +02:00
Hook up kitty-tool completions with shell integration
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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-tool __complete__ fish
|
||||
end
|
||||
|
||||
complete -f -c kitty-tool -a "(__ksi_completions)"
|
||||
Reference in New Issue
Block a user