termcompat alteration
This commit is contained in:
parent
e9243344a8
commit
55c0f11b40
1 changed files with 13 additions and 9 deletions
22
termcompat
22
termcompat
|
@ -1,10 +1,14 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env zsh
|
||||||
# run with more compatible TERM value
|
# run with more compatible TERM value
|
||||||
typeset -A terms=(
|
case $TERM in
|
||||||
[alacritty]='xterm'
|
(st-*) ;&
|
||||||
[xterm-kitty]='xterm'
|
(alacritty*) ;&
|
||||||
[rxvt-unicode-256color]='rxvt-unicode'
|
(xterm-kitty) ;&
|
||||||
[st-256color]='xterm-256color'
|
export TERM=xterm;;
|
||||||
[tmux-256color]='screen.xterm-new'
|
(rxvt-unicode-*)
|
||||||
)
|
export TERM=rxvt-unicode;;
|
||||||
TERM="${terms[$TERM]:-$TERM}" exec "$@"
|
(tmux-*)
|
||||||
|
export TERM=screen.xterm-new;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exec "$@"
|
||||||
|
|
Loading…
Reference in a new issue