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
|
end
|
||||||
|
|
||||||
function s
|
function s
|
||||||
if test "$TERM_PROGRAM" = kitty
|
if test "$TERM" = xterm-kitty
|
||||||
kitty +kitten ssh $argv
|
kitten ssh $argv
|
||||||
else
|
else
|
||||||
ssh $argv
|
ssh $argv
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user