Skip to content

Instantly share code, notes, and snippets.

@fbrinker
Created December 19, 2018 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbrinker/c906a21689fdb2b9e9381b8dcc0dd462 to your computer and use it in GitHub Desktop.
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`
#!/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