We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfc3c48 commit 97f1077Copy full SHA for 97f1077
1 file changed
os/win.ps1
@@ -278,6 +278,7 @@ function win_path_add($addPath) {
278
$arrPath = $path -split ';' | Where-Object { $_ -notMatch "^$regexAddPath\\?" }
279
$newpath = ($arrPath + $addPath) -join ';'
280
[Environment]::SetEnvironmentVariable("path", $newpath, 'User')
281
+ $env:path = [Environment]::GetEnvironmentVariable("path", "User") + ";" + [Environment]::GetEnvironmentVariable("path", "Machine")
282
}
283
284
function win_path_list() {
0 commit comments