-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Add environment property to the profiles in settings.json #6604
Comments
Yep, this seems like a good and reasonable feature request. We'll need to make sure that the |
Glad to see this here... I just started using Windows Terminal and love it, and this was one item I was searching for in the docs on how to do. I would love to be able to set PATH here and not have to override it for all other consoles. That said I could probably work around this by setting up a batch file to run when a console opens up. At least in my head this might be possible as I've used this for other things where I initialized the command line environment for specific tools. |
I got around this by making a @echo off
cls
SET PATH=whatever
ssh me@myserver (Just replace the ssh line with what you wanted to run) And then in the
|
Would |
If your needs are relatively simple, a
|
#2785 seems to ask for the same thing, except it does not mention any |
Terraform Example with Windows Terminal Variables cmd |
If you have {
"environment" : {
"HOMEDRIVE": "C:",
"HOME": "${env:HOMEDRIVE}${env:HOMEPATH}",
"HOMEPATH": "\\Users\\example"
}
} then should HOME use the original or new value of HOMEPATH? Should that depend on the lexical order of properties in the JSON object? It might be easiest to implement this so that The syntax leaves room for adding |
Oh my goodness, this is a dupe of #2785, isn't it. I'll move some of the relevant discussion over to that thread. Thanks for the help triaging @KalleOlaviNiemitalo! /dup #2785 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Following @DHowett suggestion in #6585.
Description of the new feature/enhancement
For tools like MinGW you need certain environment variables to be set that define their behavior. It would be convenient to have these settings in the profile.
I suggest to add a property to the profile description in
settings.json
to set environment variables. For exampleThe text was updated successfully, but these errors were encountered: