tmux-plugins / tmux-sensible

basic tmux settings everyone can agree on
MIT License
1.73k stars 90 forks source link

Set `default-terminal` and `terminal-overrides` to `$TERM` #72

Open realguse opened 2 months ago

realguse commented 2 months ago

Sensible should set the default-terminal and terminal-overrides to the $TERM environment variable.

The reason for this is that you should not change the $TERM variable, its your terminal emulator that assigns it. For example, if you use kitty, it would probably be xterm-kitty, and for alacritty it would just be alacritty.

set -g default-terminal "$TERM"
set -g terminal-overrides ",$TERM:Tc"
MartyMcFlyInTheSky commented 1 month ago

I just noticed that and I agree. I do set these options in the beginning, I don't like sensible to overwrite it. The way OP proposed is the correct way to handle true color terminals (or any).