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