mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-11 00:39:08 +08:00
Merge pull request #2591 from koaleksa/fix-posh-git-1.0.0
Fix Posh-Git 1.0.0 import and console.
This commit is contained in:
commit
5b071d8d59
4
vendor/psmodules/Cmder.ps1
vendored
4
vendor/psmodules/Cmder.ps1
vendored
@ -21,6 +21,10 @@ function Import-Git(){
|
|||||||
if($GitModule | select version | where version -le ([version]"0.6.1.20160330")){
|
if($GitModule | select version | where version -le ([version]"0.6.1.20160330")){
|
||||||
Import-Module Posh-Git > $null
|
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) ) {
|
if(-not ($GitModule) ) {
|
||||||
Write-Warning "Missing git support, install posh-git with 'Install-Module posh-git' and restart cmder."
|
Write-Warning "Missing git support, install posh-git with 'Install-Module posh-git' and restart cmder."
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user