Skip to content

Commit

Permalink
fix: set the user path variable, not the system
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrutchf committed Dec 4, 2024
1 parent 273c198 commit 357a904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function Invoke-InstallScript {

if ($IsWindows) {
# This only works on Windows.
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User)
}
else {
Write-Warning "Your PATH environment variable has been updated for this session. Please add 'export PATH=$($targetPath):`$PATH' to your shell's profile. For example, ~/.bashrc for Bash."
Expand Down

0 comments on commit 357a904

Please sign in to comment.