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:
parent
a16ec8a962
commit
7045d9127a
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user