Live data from Hacker News

Starship.rs: minimal, fast prompt for any shell

starship.rs

81–90 of 160 posts

Re: Starship.rs: minimal, fast prompt for any shell

#81
post #24

what kind of psychopath has a two line prompt?

I also can't understand the two-line prompt. I want my prompt to take as little space as possible.

I agree with the latter point. But I use xonsh as the shell and that has a prompt which can go on the last line of the terminal and does not get repeated each time, so when you scroll back you don't all the information each time.

I use that for starship information and the prompt is just the return code p[lus a character.

Re: Starship.rs: minimal, fast prompt for any shell

#82
post #58

Am I the only one who is getting tired of "It's X in rust" type projects? It's making me dislike the community. Rust is not a user feature, it's an implementation detail.

> Rust is not a user feature, it's an implementation detail

Sure, but keep in mind that in the case of open source software plenty of people will choose software written in their favorite language so that they can potentially contribute to it. Or simply because they feel more connected to something that is written in their favorite language. So I don't think it's completely irrelevant.

Re: Starship.rs: minimal, fast prompt for any shell

#83
post #58

Am I the only one who is getting tired of "It's X in rust" type projects? It's making me dislike the community. Rust is not a user feature, it's an implementation detail.

Well memory safety is a user feature. So "X but in Rust" has merit if X is written in C or C++.

Re: Starship.rs: minimal, fast prompt for any shell

#84
post #62

Earlier quoted context omitted.

The fact that this happens should be food for thought for part of the rust community. Because the way I see it, if they keep this up, a few years from now, they could, other than some obscure linux kernel modules almost noone uses and a good grep-alternative, be well along what I lovingly call the "Haskell Route".

What exactly should the takeaway be? Stop making things in Rust because people on HN will complain?

Re: Starship.rs: minimal, fast prompt for any shell

#85

> "minimal" Here is what a minimal shell prompt looks like: $ Here is another one which only uses the shells own facilities: current-directory@hostname $ Running a complex piece of software every time the shell needs to display it's prompt, is not "minimal", regardless of how fast and well written said piece of software is.

I still think minimal is appropriate in this case as it shows only what’s relevant in the context.

Re: Starship.rs: minimal, fast prompt for any shell

#86

what kind of psychopath has a two line prompt?

lot of information that'd be nicer to have at a higher level than the prompt, like the tmux or screen status bar. Be even better if a "prompt" like this could set a variable using ANSI escapes that various terminal emulators could display.

Re: Starship.rs: minimal, fast prompt for any shell

#87
post #85

> "minimal" Here is what a minimal shell prompt looks like: $ Here is another one which only uses the shells own facilities: current-directory@hostname $ Running a complex piece of software every time the shell needs to display it's prompt, is not "minimal", regardless of how fast and well written said piece of software is.

I still think minimal is appropriate in this case as it shows only what’s relevant in the context.

You're missing the point. It runs every time you show the prompt. Anything that does that is not minimal and it increases the risk of failure.

Some things that you use regularly should be kept as minimal and as stable as possible. To me that includes the shell prompt, editor, browser for example.

Re: Starship.rs: minimal, fast prompt for any shell

#89
post #27

I’m probably on the wrong side of history, but I just don’t like how much color there is in modern cli tools. It is distracting

I like some colour but some tools take it way too far. As for emoji, the appropriate amount of them in a CLI tool is zero.

Why? I don't think emoji are necessary, but they are just Unicode characters; the only objection I can think of is that they are "too playful", but if our OSS CLI tools, written as a labor of love in our spare time, have to be "serious", we are utterly fucked. Unix hacking has never worn suits and ties.

Unless we are talking about unicode support. Indeed, the software should make a basic inquiry to see if the shell/terminal emulator supports unicode and fall back to ASCII if not. But there is a difference between "I don't support unicode" and "my unicode support is broken": the latter needs fixing, and emoji are actually a good test case to see if you really support unicode.

Post reply on HN