mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-28 11:31:04 -08:00
fix(poshgit): disable prompt
This commit is contained in:
parent
d4fbbaebb3
commit
fd479809da
|
@ -46,8 +46,10 @@ function global:Get-PoshContext {
|
|||
|
||||
function global:Initialize-ModuleSupport {
|
||||
if ($env:POSH_GIT_ENABLED -eq $true -and (Get-Module -Name "posh-git")) {
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSProvideCommentHelp', '', Justification = 'Variable used later(not in this scope)')]
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSProvideCommentHelp', '', Justification = 'Variable used later (not in this scope)')]
|
||||
$global:GitStatus = Get-GitStatus
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSProvideCommentHelp', '', Justification = 'Variable used by posh-git (not in this script)')]
|
||||
$GitPromptSettings = $null
|
||||
$env:POSH_GIT_STATUS = Write-GitStatus -Status $global:GitStatus
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue