Created
December 19, 2018 18:56
-
-
Save fbrinker/c906a21689fdb2b9e9381b8dcc0dd462 to your computer and use it in GitHub Desktop.
Send your current terminal info to the remote server - needed for my termite instance, that uses `xterm-termite`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
USAGE="Usage: script.sh user@remoteserver" | |
if [ $# == 0 ] ; then | |
echo $USAGE | |
exit 1; | |
fi | |
infocmp | ssh $1 'tic -x -' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment