-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Permit hiding status (exit) code when zero #5983
Comments
Hey could you share you This works for me:
|
That's a curious quirk, but I want a success symbol. [status]
disabled = false
success_symbol = '[](fg:color_green bg:color_bg1 bold)'
style = 'bg:color_bg1'
format = '[$symbol$maybe_int]($style red)' I am using |
Okay, I don't quite understand what you are trying to achieve Could you perhaps share a screenshot of the part you want to remove and the part you want displayed? |
Brotherman, this is not a particularly difficult concept, so let me break it down one last time:
It's just that easy. Except it isn't, because it's unsupported. |
@Bilge |
@Bilge Is this the effect you are going for?
Example at https://gitlab.com/sjsepan/sjsepan.pastel-powerline @HenningCode will this PR affect existing code? |
Feature Request
Is your feature request related to a problem? Please describe.
There seems to be no way to hide the zero exit code from the
status
module. There is themaybe_int
variable, but this poorly-documented feature hides more than just the zero (0
) exit status; at the least it also hides statuses1
and2
also. I only want to hide the exit status when it is zero and nothing else.Describe the solution you'd like
Probably a new variable that is simply not set when the exit status is zero.
Describe alternatives you've considered
???
The text was updated successfully, but these errors were encountered: