Live data from Hacker News

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

starship.rs

211–216 of 216 posts

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

#211
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…

This is me. All I need to know is my current directory, and the status in color of my last command (red for failed, green for zero [my prompt starts with ->]). That's it.

It also gives me the current branch in a directory that has git, just so I'm sure of what I'm working on-- but most of the time that's handled by whatever editor I'm using.

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

#212
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 (…

Try tweaking kitty's input_delay setting. For example: kitty --override=input_delay=10

input_delay doesn't seem to address this in general: Even when set to 50 (which is very noticeable), the cursor on the next line just appears with some delay.

None of the settings from https://sw.kovidgoyal.net/kitty/performance/ seem to affect its appearance.

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

#213

Earlier quoted context omitted.

I generally use Konsole's "notify when program exits" feature. For longer tasks, I have a small tool which I pipe to, and it sends me push notification with the output (if I prefer).

I had a tool I'd pipe to, but I'd often only think about it after I'd realize that the command was going to take a while. A push notification sound cool; I used email because I knew how to hack it together with curl. Here's one zbell implementation, not sure it's the original but it looks like it does the trick: https://gist.github.com/oknowton/8346801

Thanks for sharing the bell. I'll take a look. If you want to try push notifications, I use https://pushover.net as a service.

I developed the tool myself, and it's at https://git.sr.ht/~bayindirh/nudge if you feel like checking it out.

If you want to host the whole push notification infrastructure, you can look at https://ntfy.sh which also can be integrated with cURL.

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

#214

Earlier quoted context omitted.

I had a tool I'd pipe to, but I'd often only think about it after I'd realize that the command was going to take a while. A push notification sound cool; I used email because I knew how to hack it together with curl. Here's one zbell implementation, not sure it's the original but it looks like it does the trick: https://gist.github.com/oknowton/8346801

Thanks for sharing the bell. I'll take a look. If you want to try push notifications, I use https://pushover.net as a service. I developed the tool myself, and it's at https://git.sr.ht/~bayindirh/nudge if you feel like checking it out. If you want to host the whole push notification infrastructure, you can look at https://ntfy.sh which also can be integrated with cURL.

This is incredibly helpful, thank you. I had no idea push notifications was something I could self-host.

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

#215

Earlier quoted context omitted.

Thanks for sharing the bell. I'll take a look. If you want to try push notifications, I use https://pushover.net as a service. I developed the tool myself, and it's at https://git.sr.ht/~bayindirh/nudge if you feel like checking it out. If you want to host the whole push notification infrastructure, you can look at https://ntfy.sh which also can be integrated with cURL.

This is incredibly helpful, thank you. I had no idea push notifications was something I could self-host.

You're absolutely welcome. Me neither. If I could find ntfy.sh earlier, I'd have written nudge for it, not for Pushover.

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

#216
post #212

Earlier quoted context omitted.

Try tweaking kitty's input_delay setting. For example: kitty --override=input_delay=10

input_delay doesn't seem to address this in general: Even when set to 50 (which is very noticeable), the cursor on the next line just appears with some delay. None of the settings from https://sw.kovidgoyal.net/kitty/performance/ seem to affect its appearance.

Interesting, In zsh I experienced the exact behavior you described and setting input_delay to 10 completely resolved it. To be fair, when testing my PS1 was simply '%m$ '.

I just benchmarked 'starship prompt' and when in a directory managed by git, it can take well over 10ms. I imagine with a more advanced configuration it would take even longer. urxvt must be doing something special.

Post reply on HN