←back to thread

457 points benoitg | 1 comments | | HN request time: 0.208s | source
1. exiguus ◴[] No.44371140[source]
I have several use-cases / problems I solve with my prompt:

- See current git branch (to not mistakenly work or commit into the wrong branch)

- See git has changes (to stash them before switching branches)

- See the current language/engine version (like go v1.24.2, because i use tools like gvm, sdk, nvm or rustup to switch version in projects and i want feedback that i have the correct/expected language version enabled)

- See that i am on my local or a remote machine and k8s context

That's mostly it. Of course, I can do this by writing my own prompt, but I found out that Starship does this for me, basically out of the box, on any machine and terminal, in a very nice-looking way. Also, I am not a fan of fancy-looking prompts, so visually, Starship fits best for me.