14 comments

[ 2.9 ms ] story [ 33.0 ms ] thread
I have absolutely no idea what this is.
The cross-shell prompt for astronauts you silly
I'm sort of guessing here, but maybe it's an alternative to GNU Readline.

I'm not sure I understand what problems with GNU Readline the authors were trying to solve. It being written in Rust is definitely not a plus, because the toolchains for integrating C are mature in most mainstream languages.

It's written in Rust! Give it an upvote--45 other people did.
> Rust-Powered

> Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.

Having it written in Rust does not magically make it "quick" and "reliable", AT ALL. Slow algorithms, logic errors, or anything that constitutes "shitty code" that would make it not quick, and not reliable (whatever this means).

I think the parent's comment ("It's written in Rust! Give it an upvote") is tongue-in-cheek.
It looks like a pretty and minimalist theme for various shells, that also provides hints when you are in a source code directory for the git status and the language version.

I use powerlevel10k, which is only for zsh. It looks quite similar, aesthetically, but it advertises having the best performance, using a special git status tool. But I know there are other APIs inside of git libraries, and also some rust-based libraries, that could be even faster.

Would be interested in a performance comparison.

https://github.com/romkatv/powerlevel10k

Just did a little testing with the performance tool of the powerlevel10k author (https://github.com/romkatv/zsh-prompt-benchmark). I configured p10k to look exactly like my starship configuration:

Prompt Benchmark Results Warmup duration 8s Benchmark duration 2.023s Benchmarked prompts 50

In blank folder in /tmp // Starship Time per prompt 40.46ms <-- prompt latency (lower is better)

In blank folder in /tmp // Powerlevel10k Time per prompt 57.91ms <-- prompt latency (lower is better)

In Folder with git // Starship Time per prompt 44.16ms <-- prompt latency (lower is better)

In Folder with git // Powerlevel10k Time per prompt 65.58ms <-- prompt latency (lower is better)

Good work! I will take a look
A command prompt setup, like Spaceship ZSH, Oh My ZSH!, Pure, agkozak etc, but works with bash and fish as well.
If you need to know, you are not the target audience. I don't have a clue either. So I am joining your club.
A shell prompt?

ie: You know you can configure your shell? Ok, this is a good way to do it.

Before I use zsh with some plugins. I change to this and suddenly everything is faster (I was blaming iterm for the slowdown)...

It appears to be some sort of wrapper for your shell that includes some extra info (like is there a background process, what version of node is a project running).
I had to dig in also.

It’s a tool that will change your shell prompt (bash, fish, or zsh) to include information about your environment and project details (Stuff like repo status, dev environment setup, unusual user, etc).

Back in the day, we used to do this sort of thing with magic character sequences interpreted by the shell in shell variables, but things like git integration and python virtual_environment support have apparently pushed it over the edge into a separate tool for some people.

Hope that helps.