We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60045d8 commit c039d97Copy full SHA for c039d97
vendor/psmodules/Cmder.ps1
@@ -111,7 +111,11 @@ function Set-GitPath {
111
}
112
113
# Add mingw bin directory
114
- foreach ($mingw in @('mingw64', 'mingw32')) {
+ # Prefer mingw64 on 64-bit systems, mingw32 on 32-bit systems
115
+ $is64Bit = [Environment]::Is64BitOperatingSystem
116
+ $mingwDirs = if ($is64Bit) { @('mingw64', 'mingw32') } else { @('mingw32') }
117
+
118
+ foreach ($mingw in $mingwDirs) {
119
$mingwBin = Join-Path $GitRoot "$mingw\bin"
120
if ((Test-Path $mingwBin) -and -not ($newPath -match [regex]::Escape($mingwBin))) {
121
Write-Debug "Adding $mingwBin to the path"
0 commit comments