Auto Sync/Hot reload the System environment variables in the current Windows terminal session #10217

Closed
opened 2026-01-31 02:15:34 +00:00 by claunia · 3 comments
Owner

Originally created by @sairaghavak on GitHub (Aug 18, 2020).

Description of the new feature/enhancement

Problem:
The System environment variables aren't refreshed automatically or synced up in the current windows terminal session, which is forcing the users to reopen a new windows terminal to reflect the changes.

Steps to Reproduce the problem

  1. Set the powershell as default CLI in windows terminal
  2. Open Windows terminal
  3. Try to access a system environment variable for example: ${env:JAVA_HOME}
  4. Then, try to update the JAVA_HOME property and lastly
  5. Access the same variable from the current windows terminal session, which is printing the cached/old value, isn't reflecting the latest environment variable value.

Proposed technical implementation details (optional)

Originally created by @sairaghavak on GitHub (Aug 18, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> **Problem:** The System environment variables aren't refreshed automatically or synced up in the current windows terminal session, which is forcing the users to reopen a new windows terminal to reflect the changes. **Steps to Reproduce the problem** 1. Set the powershell as default CLI in windows terminal 2. Open Windows terminal 3. Try to access a system environment variable for example: `${env:JAVA_HOME}` 4. Then, try to update the `JAVA_HOME` property and lastly 5. Access the same variable from the current windows terminal session, which is printing the cached/old value, isn't reflecting the latest environment variable value. # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 02:15:34 +00:00
Author
Owner

@DHowett commented on GitHub (Aug 18, 2020):

/dup #7243, coming out in 1.3

@DHowett commented on GitHub (Aug 18, 2020): /dup #7243, coming out in 1.3
Author
Owner

@ghost commented on GitHub (Aug 18, 2020):

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!

@ghost commented on GitHub (Aug 18, 2020): 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!
Author
Owner

@Weilet commented on GitHub (Feb 22, 2024):

Windows Terminal version 1.19.10302.0
I can't hot load new environment variables in the current tab. Is this by design?
This happens when I use winget to install something. I have to create a new tab to use the newly installed app application.

@Weilet commented on GitHub (Feb 22, 2024): Windows Terminal version `1.19.10302.0` I can't hot load new environment variables in the current tab. Is this by design? This happens when I use winget to install something. I have to create a new tab to use the newly installed app application.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10217