diff --git a/ssh-compat b/ssh-compat new file mode 100755 index 0000000..bc4846c --- /dev/null +++ b/ssh-compat @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +# cleanup -256color suffix from term and set something more compatible +typeset -A TERMS +TERMS=( + [st]='xterm' + [tmux]='screen' +) +TERM="${TERMS[${TERM%%-256color}]-${TERM%%-256color}}" exec ssh "$@"