-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Replies: 2 comments · 8 replies
-
Lean style in powerlevel10k is the most similar to the default style used by Starship. It's also the most pragmatic style. Powerlevel10k has features unavailable in Starship. While I understand that habit is a strong force, you might want to try them before dumbing powerlevel10k down. I highly recommend this basic setup:
Transient prompt may take the most to get used to but virtually everyone who tries it grows into it. It's this option that allows you to go with a rich, sparse two-line prompt and still keep scrollback compact and readable.
If you can describe this in more detail (what you do, what starship displays, and what powerlevel10k displays), I'll do my best to help.
Make sure to read the description of the default directory truncation. You can customize it by tweaking these parameters: https://github.com/romkatv/powerlevel10k/blob/master/config/p10k-lean.zsh#L248-L272 If you go with the basic setup I described above, it's probably best to keep all defaults for
The stock |
Beta Was this translation helpful? Give feedback.
All reactions
-
I'll try out the sparse prompt thanks. I've had a bit of a think about the concise vs fluent and I think you are probably right about that. Hmmm, I definitely don't get that behaviour even with a reconfigure, I guess I'll open an issue for that (home directory issue). Also for the conda segment, I'll open an issue but the default CONTENT_EXPANSION is what I'm describing here so I believe it works as intended. The package segment does indeed do what I want as does the globbing! You actually raise a very good point, I guess I'd become used to it from starship (which obviously does venvs too). I can't think of a reason I would want to see that outside of a venv so the default segments should be fine! (It is slightly nice to cd into a folder and be greeted with the language of the project, probably something to grow out of though). I'm going to just add my config as it was before I make those changes so that if others don't necessarily agree they can build from what I had done so far. Starship Config so far
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Right. Anything you put in prompt takes space and requires mental energy to parse. The amount of information you get out of it should pay off. Things that don't, are decoration at best. It's a useful practice to ask yourself: do I really need this? If not sure, try removing and see if you miss it after a week. By the way, you might want to try to move all rarely visible and less useful segments to the right and leave only |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
That makes sense. I also figured out the |
Beta Was this translation helpful? Give feedback.
All reactions
-
I have one last question, I can't quite find which setting to change to switch from fluent to concise. I'd really appreciate any pointers. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Search for powerlevel10k/config/p10k-lean.zsh Lines 490 to 491 in 5bba4b8
|
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Is there anything else you need help with, or can this discussion be closed? |
Beta Was this translation helpful? Give feedback.
All reactions
-
I think this can be closed now thank you! |
Beta Was this translation helpful? Give feedback.
-
I'd been using starship for a while before I realised the instant prompt feature and performance in powerlevel10k was too good not to use. However, I'd grown quite used to the starship behaviour and as such I'd like to create a prompt that is as similar to that behaviour as I can find, whilst also using the performance in p10k. I know the documentation in p10k is harder to get to grips with than for starship so I wanted to make this discussion so I can share what I've done to my prompt so far and hopefully get suggestions from others in a similar boat (I've seen a few issues that were made about this but I hope that a discussion is a better format to create such a custom. config).
I'm currently tweaking my config as I learn more about p10k and I'll hopefully be back very soon to share what I manage to do!
The key things I'm currently missing from starship that I haven't managed to emulate are the way starship deals with builtin language/env recognition features. In addition the differences in git status are interesting because they're more expressive but also more text in p10k and I'm not sure which one I prefer yet (though once I decide making the modification shouldn't be too hard). Finally the truncation of directories in p10k is something that currently feels a bit weird to me, though I'm planning on looking into the anchor points since they seem interesting. My ideal setup would be show at most the last three directories but less if one is an anchor point but I'm not yet sure how to do that in p10k. Also I want the home directory to show as
~
not as/users/username/
!If anyone has any suggestions for any of these points, I'd be grateful for the input.
Beta Was this translation helpful? Give feedback.
All reactions