Skip to content

Instantly share code, notes, and snippets.

@flungo
Created February 7, 2017 13:39
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 flungo/7348580603bbee08f33e8e37d631d5a6 to your computer and use it in GitHub Desktop.
Save flungo/7348580603bbee08f33e8e37d631d5a6 to your computer and use it in GitHub Desktop.
SSH wrapper function that replaces uncommon TERM values with `xterm`
# SSH wrapper function that replaces uncommon TERM values with `xterm`.
#
# The term values listed for override should be fully xterm compatible for this to work.
# Removes problems of unrecognised TERM when connecting to remote servers without having to install the appropriate terminfo.
function ssh
if contains $TERM rxvt-unicode-256color
env TERM=xterm ssh $argv
else
command ssh
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment