slightly more efficient
This commit is contained in:
parent
bf8d42b465
commit
161f665bae
1 changed files with 2 additions and 1 deletions
|
@ -5,4 +5,5 @@ TERMS=(
|
||||||
[st]='xterm'
|
[st]='xterm'
|
||||||
[tmux]='screen'
|
[tmux]='screen'
|
||||||
)
|
)
|
||||||
TERM="${TERMS[${TERM%%-256color}]-${TERM%%-256color}}" exec ssh "$@"
|
TEMPTERM="${TERM%%-256color}"
|
||||||
|
TERM="${TERMS[$TEMPTERM]-${TEMPTERM}}" exec ssh "$@"
|
||||||
|
|
Loading…
Reference in a new issue