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
I looked for duplicate issues before submitting this one
Description
Hi all, first of all what a great work you are building. Makes me look at my terminal several times a day just to see how it looks like.
The problem is the inconsistent behavior of the exit codes: I am concurrently using the versions 2 and 3 of oh-my-posh right now because I am still deciding on the bits and pieces of the theme. After opening the terminal, running these sequences gives different outputs in both terminals, and the version 3 behavior seems rather buggy.
I am an error
git --help
git --error
git --help
I am an error
In Powershell 5.1 / oh-my-posh v2, the resulting error sequence is this:
error
no error
no error
no error
error
In Powershell 7 / oh-my-posh v3, however, it is like this:
error
no error
error
no error
no error
The thing I am pretty sure about being a bug is the stage 5 of the latter experiment: see that "I am an error" returns a non-zero error code when run as a first command, but not after a zero return code git command.
Although I am not experienced with the inner workings of a shell, I can see that this is probably a Powershell 7 error rather than oh-my-posh3, but I guess it is worth noting it here in any case.
Environment
Oh my Posh version: 2 & 3
Theme: {2: "Operator"}, {3: jandedobbeleer}
Operating System: Windows
Shell: Powershell 5.1, Powershell 7
Terminal: Windows Terminal
The text was updated successfully, but these errors were encountered:
Prerequisites
CONTRIBUTING
guideDescription
Hi all, first of all what a great work you are building. Makes me look at my terminal several times a day just to see how it looks like.
The problem is the inconsistent behavior of the exit codes: I am concurrently using the versions 2 and 3 of oh-my-posh right now because I am still deciding on the bits and pieces of the theme. After opening the terminal, running these sequences gives different outputs in both terminals, and the version 3 behavior seems rather buggy.
I am an error
git --help
git --error
git --help
I am an error
In Powershell 5.1 / oh-my-posh v2, the resulting error sequence is this:
In Powershell 7 / oh-my-posh v3, however, it is like this:
The thing I am pretty sure about being a bug is the stage 5 of the latter experiment: see that "I am an error" returns a non-zero error code when run as a first command, but not after a zero return code git command.
Although I am not experienced with the inner workings of a shell, I can see that this is probably a Powershell 7 error rather than oh-my-posh3, but I guess it is worth noting it here in any case.
Environment
The text was updated successfully, but these errors were encountered: