mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-16 06:37:54 +08:00
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:
2
vendor/profile.ps1
vendored
2
vendor/profile.ps1
vendored
@ -41,6 +41,8 @@ try {
|
|||||||
# Check if git is on PATH, i.e. Git already installed on system
|
# Check if git is on PATH, i.e. Git already installed on system
|
||||||
Get-command -Name "git" -ErrorAction Stop >$null
|
Get-command -Name "git" -ErrorAction Stop >$null
|
||||||
} catch {
|
} 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")
|
$env:Path += $(";" + $env:CMDER_ROOT + "\vendor\git-for-windows\bin")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user