Last active
March 22, 2017 19:48
-
-
Save jonbrennecke/f4e7fe10245d57a82d4ddf2ffe57a10b to your computer and use it in GitHub Desktop.
Environment Vars in Powershell
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
// Get env (like `env`) | |
Get-ChildItem Env: | |
// Set var (like `export name=value`) | |
[Environment]::SetEnvironmentVariable("Name", "Value") | |
// Remove var (like `unset name=value`) | |
[Environment]::SetEnvironmentVariable("Name", "Value") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment