Comments (5)
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.
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.
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.
Brotherman, this is not a particularly difficult concept, so let me break it down one last time:
- When non-zero show code.
- When zero hide code.
- Always show a symbol (tick or cross).
It's just that easy. Except it isn't, because it's unsupported.
from starship.
@Bilge
Ok I think I got it now. I will create a PR that fixes this.
from starship.
Related Issues (20)
- Fortune equivalent for starship?
- detect_input HOT 1
- starship in Windows PowerShell only shows the current directory
- Current interface with IP Address info HOT 1
- Windows: Escape Sequences Issue with `starship init nu` in Nushell HOT 3
- trailing spaces being removed from prompt when using nix_shell in tmux HOT 3
- Extra empty line at the top of the terminal HOT 1
- Init.nu fails after upgrading nushell from v0.93.0 to v0.94.1 HOT 2
- No Git Information/Status Shown in Prompt When Inside Git Repo With SHA256 Hashing
- [BUG] direnv style specifies a non-standard color HOT 1
- [custom] Inconsistent handling of colors from subshell when using custom module HOT 2
- Add option for aliasing known hostnames in config
- `starship module ...` not displaying any output to stdin with the exception of `starship module character`
- Kubernetes module not working on Powershell
- .gitconfig file triggers "git" section HOT 1
- [Feat.Req] P10k like instant prompt
- Starship not honoring `add_newline = false`
- over-eager language detection logic causes noisy, false info in prompts
- kubernetes module ignores detect_files setting HOT 3
- `nix shell` module HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starship.