Skip to content

Terminal context Environment variables #7773

Closed

Description

@arqtiq

Description of the new feature/enhancement

Numerous times I tried to automate some settings / profiles edits on the Terminal settings themselves, and I usually lack informations about the current tab environment :

  • What is the current loaded profile / scheme ?
  • Is the host the preview package ?

I'm sure there are also more info we could export to env vars based on people needs.
This would be veery useful to manage the terminal settings / themes / profiles directly from the command line !

Proposed technical implementation details (optional)

When opening a new tab, set:

  • $WT_CURRENT_PROFILE (Microsoft PowerShell, CMD, ...)
  • $WT_CURRENT_SCHEME
  • $WT_IS_PREVIEW (1 / 0, if the current terminal running package is the preview one)

Activity

  1. added
    Issue-Feature
    on Sep 29, 2020
  2. ghost added
    Needs-Tag-Fix
    on Sep 29, 2020
  3. ghost added
    Needs-Triage
    on Sep 29, 2020
  4. zadjii-msft commented on Sep 29, 2020

    @zadjii-msft
    Member

    This looks like it's roughly the same as the discussion that's taken place in #4566, so I'm gonna forward this discussion to that thread. Thanks!

    /dup #4566

  5. ghost closed this as completedon Sep 29, 2020
  6. ghost removed
    Needs-Triage
    on Sep 29, 2020
  7. ghost added
    Resolution-Duplicate
    on Sep 29, 2020
  8. ghost removed
    Needs-Tag-Fix
    on Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureResolution-Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions