<p dir="auto">I use a program called <code class="notranslate">scoop</code> to install software which modifies the PATH.</p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\Users\trajano&gt; [Environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18947.0 Microsoft Windows NT 10.0.18947.0

Terminal Version: 0.3.2171.0
"><pre lang="none" class="notranslate"><code class="notranslate">PS C:\Users\trajano&gt; [Environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18947.0 Microsoft Windows NT 10.0.18947.0

Terminal Version: 0.3.2171.0

</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li><code class="notranslate">scoop install maven</code></li>
<li>start up a new tab</li>
<li>run <code class="notranslate">mvn</code></li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Maven should run</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Maven does not run because it is not found in path<br>
Close Terminal (all tabs and windows)<br>
Start up Terminal again<br>
run <code class="notranslate">mvn</code> works again.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">When I install an app that updates the path or I update the path manually, it isn't enough to kill an individual tab in the Terminal and start a new one.  The new tab still inherits the old, unchanged environment variable values. This means I have to kill/restart the Terminal and lose all my tabs.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Add a Windows message handler for <code class="notranslate">WM_SETTINGCHANGE</code> and update the Terminal process's environment block so that any new tabs get the updated environment variables.</p>