You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "problem" is that the PATH is completely overwritten. If you had modified it dynamically in the shell, prior to running refreshenv, the information is purged.
Maybe the user expects such a result. And, that is the desired behavior. But for me, if I had previously just run
$env:PATH = "$env:PATH;$new_path_entry"
I don't want to lose $new_path_entry by running refreshenv.
Describe The Solution. Why is it needed?
A proposed solution:
Add a -help flag for options to refreshenv.
Add a -keep flag to cause refreshenv to make a local copy of PATH before it does the refresh, and then merge the original and the new values together so that the final resulting PATH includes everything, and data is not lost.
Additional Context
No response
Related Issues
No response
The text was updated successfully, but these errors were encountered:
Checklist
Is Your Feature Request Related To A Problem? Please describe.
After installing a choco package, to add the new executable to the path, run this in powershell:
The "problem" is that the PATH is completely overwritten. If you had modified it dynamically in the shell, prior to running refreshenv, the information is purged.
Maybe the user expects such a result. And, that is the desired behavior. But for me, if I had previously just run
$env:PATH = "$env:PATH;$new_path_entry"
I don't want to lose $new_path_entry by running
refreshenv
.Describe The Solution. Why is it needed?
A proposed solution:
Add a
-help
flag for options torefreshenv
.Add a
-keep
flag to causerefreshenv
to make a local copy of PATH before it does the refresh, and then merge the original and the new values together so that the final resulting PATH includes everything, and data is not lost.Additional Context
No response
Related Issues
No response
The text was updated successfully, but these errors were encountered: