Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(status): Don't show status if all exit codes are 0 #3109

Merged
merged 2 commits into from Oct 3, 2021

Conversation

davidkna
Copy link
Member

Description

This change ensures that the status module is not only hidden when the status code is 0 and pipestatus is missing or disabled, but also when there is a pipestatus available and each status has the value 0.

Motivation and Context

Related #3028
Closes #3020

Screenshots (if appropriate):

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux
  • I have tested using Windows

Checklist:

  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

@davidkna davidkna requested a review from a team September 30, 2021 14:46
@andytom andytom merged commit 6869402 into starship:master Oct 3, 2021
@davidkna davidkna deleted the fix-pipestatus0 branch March 26, 2022 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shell exit status code is sometimes shown even if it is zero
2 participants