Updates the environment variables of the current powershell session with any environment variable changes that may have occurred during a Chocolatey package install.
When Chocolatey installs a package, the package author may add or change certain environment variables that will affect how the application runs or how it is accessed. Often, these changes are not visible to the current PowerShell session. This means the user needs to open a new PowerShell session before these settings take effect which can render the installed application nonfunctional until that time.
Use the Update-SessionEnvironment command to refresh the current PowerShell session with all environment settings possibly performed by Chocolatey package installs.
This method is also added to the user's PowerShell profile as
refreshenv. When called as
refreshenv, the method will provide
PSModulePath as set by the process.
This documentation has been automatically generated from
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Update-SessionEnvironment -Full.
View the source for Update-SessionEnvironment