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.
This commit is contained in:
Jan Schulz 2016-03-02 18:59:12 +01:00
parent fbccc6b790
commit 1e7f15100f

2
vendor/profile.ps1 vendored
View File

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