Skip to content

Commit 35af36c

Browse files
committed
PS: also add cmd and bin version of git to the path
This ensures that the "normal" path entry (cmd) is first and bash is still reachable via the bin path.
1 parent 43b7b5c commit 35af36c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: vendor/profile.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ try {
4141
# Check if git is on PATH, i.e. Git already installed on system
4242
Get-command -Name "git" -ErrorAction Stop >$null
4343
} catch {
44+
$env:Path += $(";" + $env:CMDER_ROOT + "\vendor\git-for-windows\cmd")
45+
# for bash.exe, which in the cmd version is found as <GIT>\usr\bin\bash.exe
4446
$env:Path += $(";" + $env:CMDER_ROOT + "\vendor\git-for-windows\bin")
4547
}
4648

0 commit comments

Comments
 (0)