Live data from Hacker News

Starship: A minimal, fast, and customizable prompt for any shell

starship.rs

191–200 of 216 posts

Re: Starship: A minimal, fast, and customizable prompt for any shell

#191
I've been a happy starship user for a few years at this point (after a long time with oh-my-zsh). For me, it's killer feature is the `starship.toml` file. Gone are the days of arcane bash escape sequences to style the prompt. It's a well-documented shape and easy to reason about. So no matter if you got maximalist or minimalist for your, it's easy to tweak. That rocks.

Re: Starship: A minimal, fast, and customizable prompt for any shell

#192

Earlier quoted context omitted.

For personal workstation, the current directory is enough. Maybe I change the color based the status of the last command. That’s pretty much the only information I need before entering any command. Everything else can be accessed when I really need it.

You don't need to know what branch you're on before running commands? I cant tell you the number of times ive been on the wrong branch executing stuff.

I guess it depends on your day job and workflow?

I’m a researcher and work on small projects with 1-3 people (most of the time it’s just me prototyping stuff alone). I then tend to work on a branch for weeks at a time, so the git branch provides very little information compared to the space it takes in a prompt.

If I was switching branches every 5min, it would be useful.

Re: Starship: A minimal, fast, and customizable prompt for any shell

#193

I know Starship isn't zsh specific but I guess its tangentially related, does anyone know what the default zsh config is on MacOS? I got quite used to it, and now I'm on linux I'd like to replicate it. The closest I've got is using the eastwood theme on oh-my-zsh but it's not quite the same (I dont even think MacOS using oh-my-zsh out the box, but its got all the nice git stuff)

/etc/zsh: https://pastebin.com/kjwQ97z1 /etc/zshrc_Apple_Terminal: https://pastebin.com/kfKF5ych

Fantastic, had no idea about these, cheers!

Re: Starship: A minimal, fast, and customizable prompt for any shell

#194
post #72

Earlier quoted context omitted.

I'm highly aware of which branch I'm on. Because it's because I don't use any scripts or automation that switches branches; I only ever switch branches manually so I have that awareness.

I only switch branches manually too, but I work in many repos and come back to stuff after days sometimes.

"git status" is all you need then.

Re: Starship: A minimal, fast, and customizable prompt for any shell

#195
post #109

I would be very curious to see an age demographic chart of people using e.g. Starship. Personally, over time, I have stopped caring too much about prompt customization. I concluded that, no matter how carefully you curate your prompt, 90% of the information shown will be irrelevant 90% of the time*. After a while, your brain will start perceiving this as visual clutter and filter it out, to the point you may even for…

For most of my nearly 40 years in work I had PS1='$ ' and PS2='> '.

A few years ago I progressed to having the current directory in there.

The thought of running a child process to create my prompt every time I hit enter doesn't feel right.

Re: Starship: A minimal, fast, and customizable prompt for any shell

#196
post #158
post #109

I would be very curious to see an age demographic chart of people using e.g. Starship. Personally, over time, I have stopped caring too much about prompt customization. I concluded that, no matter how carefully you curate your prompt, 90% of the information shown will be irrelevant 90% of the time*. After a while, your brain will start perceiving this as visual clutter and filter it out, to the point you may even for…

> Personally, over time, I have stopped caring too much about prompt customization. For a while, I tried a couple of Christmas tree prompts which included all kinds of condensed Git status and other bells and whistles, but eventually tired of them and settled on: - Exit status of the previous command, if nonzero. - Current time, HH:MM, 24 hour format. - user@host, red if euid 0, green otherwise. - Current directory,…

That does look pretty good. I wouldn't bother with the time but I like the rest of it.

Re: Starship: A minimal, fast, and customizable prompt for any shell

#197
post #183
post #109

I would be very curious to see an age demographic chart of people using e.g. Starship. Personally, over time, I have stopped caring too much about prompt customization. I concluded that, no matter how carefully you curate your prompt, 90% of the information shown will be irrelevant 90% of the time*. After a while, your brain will start perceiving this as visual clutter and filter it out, to the point you may even for…

I hope to not age out of trying out new tools other people like!

You won't. I tried uv the other day. But I'm too old to want to run a child process just to draw a prompt.

I should know what git branch I'm in, and if I don't it's a simple command away.

Re: Starship: A minimal, fast, and customizable prompt for any shell

#198
post #64

Earlier quoted context omitted.

Same here, I also find that aliases for speed introduce unnecessary complexity and mental overhead later on. It's not much, and for other people it doesn't matter or they have a different preference, but that's what I prefer. Sort of contrary to that I really enjoy the maximalist shells. A computer should be fun to use!

I don't use aliases, but abbreviations that expand to the actual full command. Helpful to type less and history has the exact.

I like this. What do you use to accomplish this?

Re: Starship: A minimal, fast, and customizable prompt for any shell

#199
post #170

With or without starship, one problem I have with zsh prompts is that when I press Enter, there is still a visible delay where for a fraction of a second, the cursor moves to the beginning of the next line. This makes a nasty "flashing" effect. If I keep Enter pressed, the cursor is permanently visible at offset 0 in the lowest line. If the prompt is ultra-fast (e.g. plain root shell prompt on zsh), it happens less (…

For Kitty I posted it on https://github.com/kovidgoyal/kitty/issues/8752, maybe we'll learn more!

Re: Starship: A minimal, fast, and customizable prompt for any shell

#200
post #105

I used to use Starship awhile ago, switched to powerlevel10k. Trying to figure out if there's any thing there for me to want to try starship again? I remember powerlevel10K was really easy to get going.....

Powerlevel10k is perfect for me: fast, configurable, looks really good. It is not maintained anymore though :( I guess I'll keep using it while it lasts
Post reply on HN