slightly more efficient

master
Von Random 4 years ago
parent bf8d42b465
commit 161f665bae
  1. 3
      ssh-compat

@ -5,4 +5,5 @@ TERMS=(
[st]='xterm'
[tmux]='screen'
)
TERM="${TERMS[${TERM%%-256color}]-${TERM%%-256color}}" exec ssh "$@"
TEMPTERM="${TERM%%-256color}"
TERM="${TERMS[$TEMPTERM]-${TEMPTERM}}" exec ssh "$@"

Loading…
Cancel
Save