-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Windows: TERM variable doesn't work on WSL #2711
Comments
Have you checked that you're editing the correct config file? You can see where the loaded config is located by running Also please share your config to make sure you've set everything up properly. |
|
When you start another WSL shell or Alacritty with It's possible that WSL is just setting this environment variable itself after startup, at which point there's nothing Alacritty can do and this needs to be resolved in the WSL config. |
Sorry, it's a bit unclear what to do to me |
You're supposed to put it before the command, to set the environment variable for that command. So |
Nope, doesn't work as well, still default |
Sounds like there's nothing Alacritty can do then and it's done by WSL itself at startup. You'll have to set the term variable in your shell config then, that should definitely work. |
Found the way to workaround this issue |
That sounds like the proper way to do this with WSL then. Closing as resolved. |
Yeah it is but is there any possibility to simplify handling of this? |
You should be able to put this in Alacritty's If WSL sets environment variables on startup, there's absolutely nothing Alacritty can do about it. Alacritty can only suggest environment variables to WSL, but if it ovrrides these that's up to WSL and you'd have to complain to them (they'd likely just tell you to set WSLENV though I'd assume). |
Couldn't try before, srry
Idk maybe it can be stated somewhere just in case, but up to you |
I tried that with WSL2 but it does not work for me
I tried it also with appending /w as suffix to the WSLENV Like described in this article: https://devblogs.microsoft.com/commandline/share-environment-vars-between-wsl-and-windows/ |
Which operating system does the issue occur on?
Windows 10
To reproduce:
Tried with alacritty terminfo and xterm, default is xterm-256color
The text was updated successfully, but these errors were encountered: