Simple and fast zsh prompt based on gitstatus.
Important
gitstatus officially went on life support on June 6, 2024, although it is working properly as of today and will probably do so for an almost indefinite period of time.
I oscillated between Starship and Powerlevel10k for my zsh prompt. Starship is customizable and visually appealing by default but has unnecessary features, making it slower. Powerlevel10k is extremely fast but has a complex configuration.
My goal was to create a prompt with only the essential functionality: detecting command failures and displaying basic git repository info. I avoided advanced customization to keep the code simple yet aesthetically pleasing.
Zunder-prompt combines Starship's style and Powerlevel10k's efficiency. It uses gitstatus (like Powerlevel10k) for optimized git info, ensuring instant responsiveness with no lag.
zinit light-mode depth"1" for \
romkatv/gitstatus \
warbacon/zunder-prompt
plug "romkatv/gitstatus"
plug "warbacon/zunder-prompt"
if ! zgenom saved; then
# ...
zgenom load romkatv/gitstatus
zgenom load warbacon/zunder-prompt
# ...
fi
zplug "romkatv/gitstatus", depth:1
zplug "warbacon/zunder-prompt", on:"romkatv/gitstatus", depth=1
As zunder-prompt is built with simplicity and speed in mind, there isn't too much customization available. However, you can change the prompt's character symbol and color.
ZUNDER_PROMPT_CHAR="➜" # default value: "❯"
ZUNDER_PROMPT_CHAR_COLOR="green" # default value: "fg"