diff --git a/vendor/profile.ps1 b/vendor/profile.ps1 index 7084efd..58c6997 100644 --- a/vendor/profile.ps1 +++ b/vendor/profile.ps1 @@ -11,7 +11,13 @@ if( -not $env:PSModulePath.Contains($CmderModulePath) ){ } 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\msysgit\bin" +} + +try { Import-Module -Name "posh-git" -ErrorAction Stop >$null $gitStatus = $true } catch {