Browse Source

replace ssh-compat with termcompat as a more versatile tool

master
Von Random 4 years ago
parent
commit
1856014398
  1. 9
      ssh-compat
  2. 8
      termcompat

9
ssh-compat

@ -1,9 +0,0 @@
#!/usr/bin/env bash
# cleanup -256color suffix from term and set something more compatible
typeset -A TERMS
TERMS=(
[st]='xterm'
[tmux]='screen'
)
TEMPTERM="${TERM%%-256color}"
TERM="${TERMS[$TEMPTERM]-${TEMPTERM}}" exec ssh "$@"

8
termcompat

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# run with more compatible TERM value
typeset -A terms=(
[rxvt-unicode-256color]='rxvt-unicode'
[st-256color]='xterm-256color'
[tmux-256color]='screen.xterm-new'
)
TERM="${terms[$TERM]:-$TERM}" exec "$@"
Loading…
Cancel
Save