mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
parent
7d3629c7d4
commit
bd4d563245
|
@ -64,7 +64,7 @@ function Set-PoshPrompt {
|
||||||
Set-PoshContext
|
Set-PoshContext
|
||||||
if ($lastCommandSuccess -eq $false) {
|
if ($lastCommandSuccess -eq $false) {
|
||||||
#native app exit code
|
#native app exit code
|
||||||
if ($realLASTEXITCODE -is [int]) {
|
if ($realLASTEXITCODE -is [int] -and $realLASTEXITCODE -gt 0) {
|
||||||
$errorCode = $realLASTEXITCODE
|
$errorCode = $realLASTEXITCODE
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue