mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
fix(pwsh): check presence of "posh-git" module
This commit is contained in:
parent
08eb57bf96
commit
dbcfab3480
|
@ -26,7 +26,7 @@ New-Module -Name "oh-my-posh-core" -ScriptBlock {
|
|||
$env:POSH_THEME = (Resolve-Path -Path ::CONFIG::).ProviderPath
|
||||
}
|
||||
# specific module support (disabled by default)
|
||||
if ($null -eq $env:POSH_GIT_ENABLED) {
|
||||
if (($null -eq $env:POSH_GIT_ENABLED) -or ($null -eq (Get-Module 'posh-git'))) {
|
||||
$env:POSH_GIT_ENABLED = $false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue