Skip to content

Commit

Permalink
Merge pull request #2648 from daxgames/fix_posh_colors
Browse files Browse the repository at this point in the history
Fix posh colors
  • Loading branch information
daxgames committed Jan 15, 2022
2 parents ea01454 + 7cc1c77 commit 711fe28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vendor/psmodules/Cmder.ps1
Expand Up @@ -83,7 +83,7 @@ function Configure-Git($gitRoot, $gitType, $gitPathUser){
if ($gitType -eq 'VENDOR') {
# If User Git is installed replace its path config with Newer Vendored Git Path
if ($gitPathUser -ne '' -and $gitPathUser -ne $null) {
write-host -foregroundcolor yellow "Cmder 'profile.ps1': Replacing older user Git path '$gitPathUser' with newer vendored Git path '$gitRoot' in the system path..."
# write-host "Cmder 'profile.ps1': Replacing older user Git path '$gitPathUser' with newer vendored Git path '$gitRoot' in the system path..."

$newPath = ($env:path -ireplace [regex]::Escape($gitPathUser), $gitRoot)
} else {
Expand Down Expand Up @@ -115,7 +115,6 @@ function Configure-Git($gitRoot, $gitType, $gitPathUser){
}

function Import-Git(){

$GitModule = Get-Module -Name Posh-Git -ListAvailable
if($GitModule | select version | where version -le ([version]"0.6.1.20160330")){
Import-Module Posh-Git > $null
Expand Down

0 comments on commit 711fe28

Please sign in to comment.