From fd479809da0992551514de51df8b21f7bcf17ca8 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Mon, 14 Mar 2022 22:09:30 +0100 Subject: [PATCH] fix(poshgit): disable prompt --- src/engine/init/omp.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/init/omp.ps1 b/src/engine/init/omp.ps1 index 7f91f33f..4382f5ea 100644 --- a/src/engine/init/omp.ps1 +++ b/src/engine/init/omp.ps1 @@ -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 } }