←back to thread

457 points benoitg | 6 comments | | HN request time: 0.001s | source | bottom
Show context
maztaim ◴[] No.44365427[source]
I found https://ohmyposh.dev/ works for me. There’s something about transient prompts that (at the time?) was a problem for starship. There are several other alternatives I’ve tried with meh results.
replies(1): >>44365460 #
1. Cthulhu_ ◴[] No.44365460[source]
I've used Powerlevel10k for ages (https://github.com/romkatv/powerlevel10k), but it seems it's no longer actively developed / maintained. I think it's a lot cleaner, how I have it set up right now it shows some information like timestamp, Ruby versions, command runtime etc on the right side, whereas Starship shows it right at the prompt.
replies(2): >>44365711 #>>44367660 #
2. maztaim ◴[] No.44365711[source]
Same here, that's what prompted my search. I felt I could get closest with oh-my-posh.
replies(1): >>44366220 #
3. iaresee ◴[] No.44366220[source]
That was the same thing that drove me to find an alternative and I also landed on ohmyposh specifically because starship lacked the transient prompt.
replies(1): >>44366604 #
4. fwip ◴[] No.44366604{3}[source]
I'm not 100% sure what a transient prompt is, but it looks like Starship now might have support for them.

[right prompt docs] https://starship.rs/advanced-config/#enable-right-prompt [transient prompt docs] https://starship.rs/advanced-config/#transientprompt-and-tra...

replies(1): >>44377929 #
5. taude ◴[] No.44367660[source]
oh, wow, didn't realize powerlevel10k was no longer maintained. that's a bummer. I liked it better than Starship last time I yak-shaved my local cli workflow.
6. iaresee ◴[] No.44377929{4}[source]
https://starship.rs/advanced-config/#transientprompt-in-powe...

Starship only supports this in PowerShell for whatever reason.

Edit: Doh. I see what you linked to now. Yea, maybe it does work in more than just PowerShell now?

Transient prompt basically removes your prompt decorations and replaces it with just `>` in your scroll back history in your shell sessions. In my case it's a slightly more complex transient prompt (datetime and exit code of the command), but still greatly simplified.

Makes cut-and-paste of history in to docs and stuff super nice.