MicrosoftDocs / terminal

Creative Commons Attribution 4.0 International
467 stars 170 forks source link

We forgot to add `profile.environment` to the docs #781

Open zadjii-msft opened 4 weeks ago

zadjii-msft commented 4 weeks ago

And you can enable it like so:

The profile's environment completely replaces the one specified in defaults.

So if you've got:

"defaults": {
  "environment": {
    "Foo": "Bar"
  }
},
"list": [
  {
    "name": "PowerShell",
    "environment": {
      "Baz": "Qux"
    }
  }
]

Your PowerShell profile will get Baz=Qux and your cmd profile will get Foo=Bar.