Below is a screen shot demonstrating all of the possible prompt states (excluding when running as root user, where the „%” at the end of the prompt changes to „#”).
[[./screen-shot.png]]
* Prior art
- The prompt is based on [[https://github.com/tobyjamesthomas/pi][pi.zsh-theme]] by [[https://github.com/tobyjamesthomas][Toby Thomas]].
- the =get_pwd()= function is a modified version of one by [[https://github.com/shashankmehta][Shashank Mehta]].
* Installation instructions
** Requirements
Error indicator is shown using a unicode emoji character - it was tested with Noto Color Emoji font. Git repository symbol uses Powerline glyph (0xe0a0) - make sure your monospace font can display it or change the character to your liking in the source.