clone-in-kitty.fish 294 B

12345678
  1. function __ksi_completions
  2. set --local ct (commandline --current-token)
  3. set --local tokens (commandline --tokenize --cut-at-cursor --current-process)
  4. printf "%s\n" $tokens $ct | command kitten __complete__ fish | source -
  5. end
  6. complete -f -c clone-in-kitty -a "(__ksi_completions)"