Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
realguse opened this issue Jun 11, 2024 · 1 comment
Open

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

realguse opened this issue Jun 11, 2024 · 1 comment

Comments

@realguse
Copy link

realguse commented Jun 11, 2024

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
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants