Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Suppress confirmation prompt on Remove-Variable
Browse files Browse the repository at this point in the history
Fixes #301
  • Loading branch information
AArnott authored and JanDeDobbeleer committed Sep 15, 2020
1 parent 57d09c9 commit 67acd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oh-my-posh.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67acd03

Please sign in to comment.