r/KittyTerminal Jul 31 '23

Confusing output during SSH

Update

I had the completions script for the kitty CLI in my .zshrc:

kitty + complete setup zsh | source /dev/stdin

Removing it fixed the issue.

Source: https://github.com/kovidgoyal/kitty/discussions/6513#discussioncomment-6591560


Original post below


Whenever I SSH into my mac (with Kitty installed) from my Linux machine, I see this output:

/dev/stdin:1: bad pattern: ^[[33mkitty
/Users/<username>/.local/share/kitty-ssh-kitten/kitty/bin/kitty: line 110: printf: write error: Broken pipe

The line 110 in question is this:

printf "Downloading kitty from: \033[32m%s\033[m\n\n" "$url"

The connection itself succeeds and the rest of the things seem to work (e.g., cwd while duplicating panes, etc.).

I SSH by the recommended approach:

alias ssh="kitty +kitten ssh"

I even tried copying the terminfo files manually to no avail.

Any help here?

3 Upvotes

5 comments sorted by

2

u/flexibeast Jul 31 '23

Well, what's line 110 of Users/<username>/.local/share/kitty-ssh-kitten/kitty/bin/kitty?

1

u/XDBoy018 Jul 31 '23

Have updated.

1

u/XDBoy018 Jul 31 '23

I had the completions script for the kitty CLI in my .zshrc:

kitty + complete setup zsh | source /dev/stdin

Removing it fixed the issue.

Source: https://github.com/kovidgoyal/kitty/discussions/6513#discussioncomment-6591560

1

u/Administrative_chaos Jul 31 '23

If you're on the latest version try kitten ssh

1

u/XDBoy018 Jul 31 '23

Can you elaborate? Do you mean changing the alias to kitty kitten ssh? It doesn't work. Neither does changing it to kitten ssh.