vscripts/ssh-compat
2018-06-25 18:41:30 +03:00

9 lines
238 B
Bash
Executable file

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