slightly more efficient

This commit is contained in:
Von Random 2018-06-25 18:41:30 +03:00
parent bf8d42b465
commit 161f665bae

View file

@ -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 "$@"