1
0
Fork 0
vdotfiles/cli/.config/fish/functions/termcompat.fish

16 lines
343 B
Fish
Raw Permalink Normal View History

2023-02-05 22:38:36 +02:00
function termcompat
set -l term $TERM
switch $term
case 'alacritty*' 'kitty*' 'wezterm' 'xterm-*'
set term xterm
case 'rxvt-unicode-*'
set term rxvt-unicode
case 'tmux*'
set term screen.xterm-new
end
begin
set -lx TERM $term
command $argv
end
end