Add Git\usr\bin\ to path on windows

Adding Git\usr\bin\ to path would make it possible to use vim and
compile in ssh session

Task-number: COIN-1060
Change-Id: Ic96d787de3cc71c685e09ae6fd00c35745e747a1
Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
This commit is contained in:
Casimir Saastamoinen
2023-11-09 15:06:01 +02:00
parent c58680d7a3
commit 0477a26495
4 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
$existingPath = [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::Machine)
if ($existingPath -notlike "*C:\Program Files\Git\usr\bin*") {
$newPath = $existingPath + ";C:\Program Files\Git\usr\bin"
[System.Environment]::SetEnvironmentVariable("PATH", $newPath, [System.EnvironmentVariableTarget]::Machine)
Write-Host "Added C:\Program Files\Git\usr\bin to PATH."
}

View File

@@ -0,0 +1 @@
. "$PSScriptRoot\..\common\windows\git_usr_bin_to_path.ps1"

View File

@@ -0,0 +1 @@
. "$PSScriptRoot\..\common\windows\git_usr_bin_to_path.ps1"

View File

@@ -0,0 +1 @@
. "$PSScriptRoot\..\common\windows\git_usr_bin_to_path.ps1"