vscripts/ssh-compat

10 lines
238 B
Text
Raw Normal View History

#!/usr/bin/env bash
# cleanup -256color suffix from term and set something more compatible
typeset -A TERMS
TERMS=(
[st]='xterm'
[tmux]='screen'
)
2018-06-25 18:41:30 +03:00
TEMPTERM="${TERM%%-256color}"
TERM="${TERMS[$TEMPTERM]-${TEMPTERM}}" exec ssh "$@"