Skip to content

Instantly share code, notes, and snippets.

@wildeyes
Created February 5, 2017 16:44
Show Gist options
  • Save wildeyes/1c1a000913ffdfa62b98df22a13653a8 to your computer and use it in GitHub Desktop.
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)
# 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