From 6d1e2d6e8bc67481f29fde9ee5928dfcd5e67ecf Mon Sep 17 00:00:00 2001 From: Aleksandar Kocic Date: Tue, 31 Aug 2021 08:40:46 +0200 Subject: [PATCH] Fix Posh-Git 1.0.0 import and console. --- vendor/psmodules/Cmder.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/psmodules/Cmder.ps1 b/vendor/psmodules/Cmder.ps1 index 755d4a7..59eae1e 100644 --- a/vendor/psmodules/Cmder.ps1 +++ b/vendor/psmodules/Cmder.ps1 @@ -21,6 +21,10 @@ function Import-Git(){ if($GitModule | select version | where version -le ([version]"0.6.1.20160330")){ Import-Module Posh-Git > $null } + if($GitModule | select version | where version -ge ([version]"1.0.0")){ + Import-Module Posh-Git > $null + $GitPromptSettings.AnsiConsole = $false + } if(-not ($GitModule) ) { Write-Warning "Missing git support, install posh-git with 'Install-Module posh-git' and restart cmder." }