mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
parent
ae8557882c
commit
49e8725f66
|
@ -76,7 +76,9 @@ New-Module -Name "oh-my-posh-core" -ScriptBlock {
|
|||
|
||||
function Initialize-ModuleSupport {
|
||||
if ($env:POSH_GIT_ENABLED -eq $true) {
|
||||
$env:POSH_GIT_STATUS = Write-GitStatus -Status (Get-GitStatus)
|
||||
# We need to set the status so posh-git can facilitate autocomplete
|
||||
$global:GitStatus = Get-GitStatus
|
||||
$env:POSH_GIT_STATUS = Write-GitStatus -Status $global:GitStatus
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue