Add ssh script with terminfo copy to README

This commit is contained in:
Kovid Goyal 2018-05-03 09:40:18 +05:30
parent e4ed170748
commit 06cb2cafe6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -550,6 +550,17 @@ Really, the correct solution for this is to convince the OpenSSH maintainers to
have ssh do this automatically when connecting to a server, so that all
terminals work transparently.
In the meantime, you can automate it by using a simple script called, for example,
`~/bin/myssh`
....
#!/bin/sh
infocmp xterm-kitty | ssh $1 tic -x -o \~/.terminfo /dev/stdin && ssh $1
....
Then you can use `myssh server` to log in to `server` with the terminfo file
being automatically available.
=== How do I change the colors in a running kitty instance?