From 67acd03b15250dacfae8b15870109dfafb068d89 Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Sat, 12 Sep 2020 18:26:17 -0600 Subject: [PATCH] Suppress confirmation prompt on Remove-Variable Fixes #301 --- oh-my-posh.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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