Created
February 5, 2017 16:44
-
-
Save wildeyes/1c1a000913ffdfa62b98df22a13653a8 to your computer and use it in GitHub Desktop.
Script to add sublime text 3 to environment path variable permanently via powershell (Administrator)
This file contains hidden or 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
# Run with administrator rights, | |
# you can simply copy and paste into a powershell session | |
$PATH = [Environment]::GetEnvironmentVariable("PATH"); | |
$subl = "C:\Program Files\Sublime Text 3"; | |
[Environment]::SetEnvironmentVariable("PATH", "$PATH;$subl", "Machine"); | |
refreshenv; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment