vscripts/termcompat
2021-06-08 20:27:52 +03:00

10 lines
286 B
Bash
Executable file

#!/usr/bin/env bash
# run with more compatible TERM value
typeset -A terms=(
[alacritty]='xterm'
[xterm-kitty]='xterm'
[rxvt-unicode-256color]='rxvt-unicode'
[st-256color]='xterm-256color'
[tmux-256color]='screen.xterm-new'
)
TERM="${terms[$TERM]:-$TERM}" exec "$@"