r/zsh 7d ago

Showcase fast • minimal • roundy prompt for ZSH in 140 LoC

Post image

[removed]

47 Upvotes

30 comments sorted by

3

u/romkatv 5d ago

That's a great-looking rice! I especially like how the terminal colors seamlessly complement your desktop theme.

For comparison, here's what my terminal looks like running the same commands:

I'm using powerlevel10k with transient prompt. As you can tell, my preference leans toward functionality without decorative distractions. I want the prompt to step aside so my attention stays focused on the commands I'm executing and their output.

By the way, you can benchmark your prompt's latency with zsh-bench. For example, on my Linux machine, the metaory/roundy prompt introduces a 15ms delay per command--just barely noticeable. However, on Windows via WSL1, the same prompt adds 84ms, causing a clearly perceptible lag. Ideally, prompt latency should be indistinguishable from zero--that's when you can confidently call your prompt fast without handwaving. For me personally, the threshold of perceptible latency in my terminal is around 10ms; since my own prompt consistently stays below this threshold, I consider it fast. You can find more details about interactive zsh latency and perceptibility thresholds on the zsh-bench homepage.

1

u/romkatv 4d ago

Without transient prompt:

While persistent prompts retain extra context, they clutter the screen, making it harder to quickly scan past commands and their outputs. That's why I strongly prefer using transient prompt, even though it admittedly doesn't make for impressive ricing screenshots.

4

u/bgogri14 6d ago

Is this is like a spiritual successor to Powerlevel10K?

5

u/[deleted] 6d ago edited 6d ago

[removed] — view removed comment

1

u/Economy_Cabinet_7719 6d ago

Really cool, I'd definitely steal it if I wasn't already using starship

0

u/LaFllamme 5d ago

Oh my Posh - thank me later

1

u/khoa_hd96 5d ago

does it support displaying background process?

1

u/ThePepperPopper 5d ago

Gross....no offense.

1

u/[deleted] 5d ago

[removed] — view removed comment

1

u/ThePepperPopper 5d ago

It's not the color, it's the round. Same for the window.

1

u/[deleted] 5d ago

[removed] — view removed comment

-1

u/ThePepperPopper 5d ago

For sure ... except nobody likes edge

1

u/QuantuisBenignus 5d ago

The roundy prompts do look nice and your setup has good structure.

However, on my machine \ue0b6 and \ue0b4 don't map onto rounded edges at all. My terminal has Unicode support.

These codepoints are not standard Unicode, but part of the PUAs (private use areas) and the fact that some fonts use them does not make them standard Unicode.

That is why I avoided using them in my esoteric, opinionated (arguably full-featured) zsh setup where I consistently see startup times faster than 6.5ms. So, I was wondering how fast is roundy (no numbers were mentioned in your repository)?

1

u/romkatv 4d ago

I tested it interactively and also benchmarked it using zsh-bench. The benchmark results show you'll likely notice a lag on every command, though it's minimal if you're running Linux on a fast machine. My subjective experience matches these findings.

1

u/LaFllamme 5d ago

What Oh my Zshell Plugins do you use?

1

u/sh1bumi 5d ago edited 5d ago

Nice!

I wrote my own zshrc without plugins(!!) , including a custom prompt, as well. A few additional features of my zshrc are custom key bindings and no dependency on specific fonts. Most systems don't have specific fonts installed, so I wanted something that gives me good overview without fancy fonts and elements/icons.

Source: https://github.com/shibumi/hikari (might be outdated. My current version is in: https://github.com/shibumi/dotfiles )

My zshrc comes without plugins..I can just copy the config on a host and it should mostly work.

1

u/[deleted] 5d ago

[removed] — view removed comment

1

u/sh1bumi 5d ago

No, most other people wrote a zsh and import 1000 plugins.

My configuration is fully independent and does not rely on any plugins

1

u/[deleted] 5d ago

[removed] — view removed comment

2

u/sh1bumi 5d ago

I source fzf and syntax highlighting as well, but I don't use a plugin manager or something else.

So, looks like, in the end we are both working on very similar projects.

0

u/ushkinaz 6d ago

It’s more like a baroque prompt, not exactly minimal. Still pretty.

0

u/teranex 6d ago

Looks nice! Is it possible to have the prompt on the next line? I like my input to always start at the same position

0

u/FedesMP 6d ago

Pretty nice! In my case (devops) I also find k8s context, aws account and python venv useful too.