diff --git a/oh-my-posh.psm1 b/oh-my-posh.psm1 index a368bb7a..030665b0 100644 --- a/oh-my-posh.psm1 +++ b/oh-my-posh.psm1 @@ -41,7 +41,7 @@ function Set-Prompt { $prompt $global:LASTEXITCODE = $realLASTEXITCODE - Remove-Variable realLASTEXITCODE + Remove-Variable realLASTEXITCODE -Confirm:$false } Set-Item -Path Function:prompt -Value $Prompt -Force