I customised my ZSH prompt with Zig

I’ve been having a lot of fun learning Zig doing Advent of Code puzzles.

This is my first little utility project Zigbar — suggestion for better name welcome! It generates a prompt for ZSH showing the current project git branch, language, etc.

I blogged a small write-up of how it works but I don’t go into the Zig code itself.

I’m still discovering the standard library and best Zig coding practices. I want to avoid learning bad habits, so criticism is welcome!

9 Likes