I have just tried out startship prompt. And I love it. It as built-in support for Crystal and Shards! That’s a nice surprise I didn’t really expect.
For example, this is the prompot shown in a checkout of the shards repo:
The prompt shows directory name, git branch, version from shard.yml
, the existence of a vagrantfile (which is seriously outdated and hopefully not in use anywhere), as well as Crystal version.
Notice my font (Inconsolata Nerd Font Mono) even has the Crystal logo embedded. That was another pleasent surprise
It’s great to see growing Crystal presence in developer tooling
I’ve used a hand-crafted prompt in zsh before which gave some nice contextual awareness. But starship takes it to another level by having automatic integrations for so many tools.
And it’s still quite fast, so no need to worry about performance.