Last active
November 1, 2017 11:49
-
-
Save xiaoyvr/4154bbf4b2a9375f424bf3871c8bedf9 to your computer and use it in GitHub Desktop.
get windows laptop work without admin priviledge
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
$path = $env:PATH | |
$excludes = @('C:\Program Files\nodejs\', 'C:\Program Files\Git\cmd', 'C:\Program Files (x86)\Yarn\bin') | |
$path = ($path.Split(';') | Where-Object { | |
-not $excludes.contains($_) | |
}) -join ';' | |
$env:PATH = "C:\Program Files (x86)\Microsoft VS Code\bin;$path" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment