This repository has been archived by the owner on Feb 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This adds a command RefreshEnv.cmd to the bin files, so that one can update environment variables out of band. There is zero chance it will work once chocolatey.cmd calls exit /b %ERRORLEVEL% as exiting the batch effectively destroys any updates to local environmental changes. The way it currently works is effectively the same as using setlocal due to the use of exit. Since this command can be called out of band, it should be called out of band, whenever the user wants to refresh their environment variables they can call this. Note this only works in cmd.exe shell. There is no current way to update a powershell session other than importing the helper functions as a module and running Update-SessionEnvironment.
- Loading branch information
1 parent
0001125
commit a09e158
Showing
3 changed files
with
7 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters