diff --git a/ssh_terminfo.py b/ssh_terminfo.py new file mode 100755 index 0000000..0d0d7d4 --- /dev/null +++ b/ssh_terminfo.py @@ -0,0 +1,19 @@ +#!/bin/python + +import os + +path = os.path.expanduser('~') + "/.ssh/config" + +f = open(path,"r") +lines = f.readlines() + +#ping -c 1 -w 1 + +print(lines.count()) + +for l in lines: + if "host " in l: + ssh_host = l.split()[1] + command = f"infocmp | ssh {ssh_host} 'tic -x /dev/stdin'" + print("Sending terminfo to: " + ssh_host) + print("Command: " + command)