mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +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:
parent
fbccc6b790
commit
1e7f15100f
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
|
||||
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")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user