ssh kitten: Fix kitten not being on PATH when sshing into Debian systems

Fixes #7160
This commit is contained in:
Kovid Goyal
2025-01-02 19:46:50 +05:30
parent dd249df5eb
commit 9d027e4fbd
6 changed files with 28 additions and 2 deletions

View File

@@ -29,6 +29,14 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after
test -n "$KITTY_SHELL_INTEGRATION" || return 0
set --local _ksi (string split " " -- "$KITTY_SHELL_INTEGRATION")
set --erase KITTY_SHELL_INTEGRATION
if test -n "$SSH_KITTEN_KITTY_DIR"
if not contains -- "$SSH_KITTEN_KITTY_DIR" "$PATH"
if not type kitten 2> /dev/null > /dev/null
set -gx PATH "$PATH" "$SSH_KITTEN_KITTY_DIR"
end
end
set --erase SSH_KITTEN_KITTY_DIR
end
# Enable cursor shape changes for default mode and vi mode
if not contains "no-cursor" $_ksi