MacOS zsh terminal themes and prompt customisation

A while back I stumbled across basic zsh prompt customisation to show the current git branch I’m working on. Some point later I also added oh-my-zsh but kept the default theme as it worked fine for my needs and was unobtrusive.

At some point recently I had a couple of terminal customisation videos come up in my recommended feed, and watching one out of curiousity I was amazed at just how far you can go, especially with displaying all sorts of info as badges in your prompt.

Just so I don’t forget how I got here, I installed powerlevel10k using brew:

brew install powerlevel10k
echo "source $(brew --prefix)/share/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc

and then used the interactive customisation menus which run if you restart zsh with:

exec zsh