From 06cb2cafe67ed682e9131572abc2b1d5e9714227 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 3 May 2018 09:40:18 +0530 Subject: [PATCH] Add ssh script with terminfo copy to README --- README.asciidoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.asciidoc b/README.asciidoc index 9b1097c4c..fa19e814b 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -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?