Git Product home page Git Product logo

Comments (5)

HenningCode avatar HenningCode commented on September 26, 2024

Hey could you share you status config? I think it you set the success_symbol="" it should be hidden when the exit code is zero.

This works for me:

[status]
format='-\[[$int]($style)\]'
success_symbol=''
style="red"
disabled=false

from starship.

Bilge avatar Bilge commented on September 26, 2024

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 $maybe_int for now, to hide the zero exit code, but it also hides other (non-zero) codes (which is bad).

from starship.

HenningCode avatar HenningCode commented on September 26, 2024

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?

from starship.

Bilge avatar Bilge commented on September 26, 2024

Brotherman, this is not a particularly difficult concept, so let me break it down one last time:

  1. When non-zero show code.
  2. When zero hide code.
  3. Always show a symbol (tick or cross).

It's just that easy. Except it isn't, because it's unsupported.

from starship.

HenningCode avatar HenningCode commented on September 26, 2024

@Bilge
Ok I think I got it now. I will create a PR that fixes this.
grafik

from starship.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.