[Question] Which shell prompt do you use and why?

stepanzak@iusearchlinux.fyi to Linux@lemmy.ml – 117 points –

Hi. I've been using powerlevel10k for a long time, but a few days ago, I decided I wanted to customize it a bit. I opened the .p10k.zsh file, and I was shocked. It's really massive, with TONS of options. I've been digging through for a few hours already, and it's absolutely amazing how much you can customize it without actually programming anything. I was wondering what other people are using. So my questions are:

  • Do you customize your shell prompt?
  • If yes, do you use some framework or pre-made theme, or do you just configure it the vanilla way in your bashrc/zshrc/...
  • How is your experiences with it so far?
  • Share screenshot of your prompts, please (Sadly, my prompt is currently half done, so I can't really share it)
80

You are viewing a single comment

I'm on the boring side...

PS1="% "

I like it though, it gives me more room for commands !

Most of the pre-built prompts have two lines to give enough space for commands. The first line has all the info, and the second line is something like your prompt. If your prompt works for you, it's great, though.

But I have more vertical space too ;)

That's fair. Powerlevel10k actually has a very smart feature for this called transient prompt that removes the first line full of info from every executed command. It's hard to explain. There is a screen recording in the README I have linked.

That sounds really cool! Do you know if I could do with default zsh?

I'm sure you can since powerlevel10k is also written in pure zsh. I have no idea how to do it or how difficult it would be, however.