fix kitty detection in ssh wrapper function

Kitty doesn't set TERM_PROGRAM, check TERM=xterm-kitty instead.
Also use modern `kitten ssh` command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Anton Volnuhin 2026-03-02 22:56:02 +03:00
parent a16ec8a962
commit 7045d9127a

View File

@ -55,8 +55,8 @@ if type -q ip
end
function s
if test "$TERM_PROGRAM" = kitty
kitty +kitten ssh $argv
if test "$TERM" = xterm-kitty
kitten ssh $argv
else
ssh $argv
end