Created
February 7, 2017 13:39
-
-
Save flungo/7348580603bbee08f33e8e37d631d5a6 to your computer and use it in GitHub Desktop.
SSH wrapper function that replaces uncommon TERM values with `xterm`
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
# 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