ssh-compat script; bash is horrifying, but beautiful
This commit is contained in:
parent
b2d4543bc6
commit
bf8d42b465
1 changed files with 8 additions and 0 deletions
8
ssh-compat
Executable file
8
ssh-compat
Executable file
|
@ -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 "$@"
|
Loading…
Reference in a new issue