vscripts/termcompat
2020-02-11 15:10:03 +03:00

9 lines
262 B
Bash
Executable file

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