4 ms·
1) kitty +kitten ssh myserver That solves that.
by flatiron 6y ago
1) kitty +kitten ssh myserver
That solves that.
- hoistbypetard 6y agoAs much as I like kitty, that shortcut is the only reason I've continued to use it for the past 18 months. Needing to manually fix it every time I connect to a new VM would've otherwise killed the appeal for me. `+kitten ssh` solves it nicely.
- aidenn0 6y agoFWIW that doesn't copy user capabilities; for that use: infocmp -x xterm-kitty | ssh myserver tic -x -o \~/.terminfo /dev/stdin
- memco 6y agoCould you explain this a bit more? I'm not sure what `ssh myserver tic -x -o \~/.terminfo /dev/stdin` is trying to do nor that it's correct as you typed it. Should `tic` be `-tic`?
- aidenn0 6y agotic is the TermInfo Compiler The command on the left side of the pipe dumps the terminfo for "xterm-kitty" to stdout The command on the right side launches ssh to "myserver" and executes tic to compile from stdin and output to the ~/.terminfo directory (which nurses/terminfo will search by default). So basically it takes a local terminfo entry and copies it to the user-local terminfo path on the remote host. The command will work for any other terminal too; just replace xterm-kitty with whichever entry you'd like copied.
- memco 6y agoThanks!
- deleted 6y ago[deleted]
- francislavoie 6y agoI've found that doing TERM=xterm-256color works better for me because of default debian bashrc on remote servers.
- staz 6y agoit seems to break on sudo. Haven't found a fix for that yet
- francislavoie 6y agoI just set up this alias: alias ssh='TERM="xterm-256color" ssh' Generally works just fine for me. I tried the kitten approach but I had some issues as well.
- staz 6y agothanks it helps
- thedanbob 6y agoI wish I had known about this a year ago. A whole lot less to type than “mkdir -p ~/.terminfo/x ^D scp /usr/share/terminfo/xterm-kitty user@server:~/.terminfo/x/“