mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
revert(posh-git): add switch to avoid calling git status
resolves #2086
This commit is contained in:
parent
ae5a6f6136
commit
746b9ad77e
|
@ -59,7 +59,7 @@ function global:Get-PoshContext {
|
|||
}
|
||||
|
||||
function global:Initialize-ModuleSupport {
|
||||
if ($GitPromptSettings.EnablePromptStatus) {
|
||||
if ($env:POSH_GIT_ENABLED) {
|
||||
$global:GitStatus = Get-GitStatus
|
||||
$env:POSH_GIT_STATUS = Write-GitStatus -Status $global:GitStatus
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue