Replies: 2 comments 3 replies
-
As far as I know, this requires something like #5476 to achieve. |
Beta Was this translation helpful? Give feedback.
0 replies
-
To extend on what davidkna already wrote, currently, if you want a Powerline like style in your prompt, you have two options:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Have a look at the Tokyo Night example used in the Starship Docs:
Notice how when the Git branch is not present, there is a small blank region between the directory and the time with the same background color as Git branch. I find this undesirable, I would like the region to totally disappear when there is no Git branch. In the Tokyo Night example the character after the directory name is hardcoded, which makes this impossible. What is needed is a region that always has the same color, but whose background changes dynamically based on whether the next item (in this case the Git branch) is present or not. So when there is no Git branch you have blue with background color 1, and when there is a Git branch you have blue with background color 2. I am unsure how to achieve this or if it is possible, so I have settled on this structure to simply avoid the problem:
As you can see in this case NO yellow is present when there is no Git branch, however it comes at the cost of a less minimal prompt. I would like to make the prompt more minimal, but I need to solve the dynamic background color problem to achieve this. if you know how to do this please tell me, and if you know that it is impossible please also tell me because then i could put in a feature request. Please feel free to ask me any clarifying quesions.
Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions