mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
fix: fix lastexitcode
This commit is contained in:
parent
c9075268ad
commit
23eb73cd69
|
@ -92,11 +92,11 @@ function Set-PoshPrompt {
|
|||
$standardOut = $process.StandardOutput.ReadToEnd()
|
||||
$process.WaitForExit()
|
||||
$standardOut
|
||||
Set-GitStatus
|
||||
$global:LASTEXITCODE = $realLASTEXITCODE
|
||||
#remove temp variables
|
||||
Remove-Variable realLASTEXITCODE -Confirm:$false
|
||||
Remove-Variable lastCommandSuccess -Confirm:$false
|
||||
Set-GitStatus
|
||||
}
|
||||
Set-Item -Path Function:prompt -Value $Prompt -Force
|
||||
}
|
||||
|
|
|
@ -56,10 +56,10 @@ function Set-GitStatus {
|
|||
$standardOut = $process.StandardOutput.ReadToEnd()
|
||||
$process.WaitForExit()
|
||||
$standardOut
|
||||
Set-GitStatus
|
||||
$global:LASTEXITCODE = $realLASTEXITCODE
|
||||
#remove temp variables
|
||||
Remove-Variable realLASTEXITCODE -Confirm:$false
|
||||
Remove-Variable lastCommandSuccess -Confirm:$false
|
||||
Set-GitStatus
|
||||
}
|
||||
Set-Item -Path Function:prompt -Value $Prompt -Force
|
||||
|
|
Loading…
Reference in a new issue