You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues.
If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Prerequisites
CONTRIBUTING
guideDescription
After 9576e82 exit code detection stopped working in PowerShell and success is always signalled, because
$?
is captured too late.Moving the lines 78-79 to the top of the
ScriptBlock
solves the problem.oh-my-posh/src/init/omp.ps1
Lines 70 to 79 in 2aa00da
Environment
Optional
Steps to Reproduce
slimfat
.python -c "exit(1)"
.Expected behavior:
Appropriate exit status and code are shown.
Actual behavior:
Success is always shown, regardless of the exit code.
The text was updated successfully, but these errors were encountered: