From f0c4e85ac82222728a96102e648f74a6dae5bbfa Mon Sep 17 00:00:00 2001 From: dgames Date: Sat, 15 Jan 2022 15:14:24 -0500 Subject: [PATCH 1/2] yellow to white --- vendor/psmodules/Cmder.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/psmodules/Cmder.ps1 b/vendor/psmodules/Cmder.ps1 index eb782e536..b23f1bb5d 100644 --- a/vendor/psmodules/Cmder.ps1 +++ b/vendor/psmodules/Cmder.ps1 @@ -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 { From 7cc1c772259aea05ce2d96367a46ac42e23d1175 Mon Sep 17 00:00:00 2001 From: dgames Date: Sat, 15 Jan 2022 16:02:14 -0500 Subject: [PATCH 2/2] do not display message when alterring git path --- vendor/psmodules/Cmder.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vendor/psmodules/Cmder.ps1 b/vendor/psmodules/Cmder.ps1 index b23f1bb5d..0c5a5904b 100644 --- a/vendor/psmodules/Cmder.ps1 +++ b/vendor/psmodules/Cmder.ps1 @@ -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 "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 { @@ -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