โšก zunder-prompt

November 23, 2024 ยท View on GitHub

Simple and fast zsh prompt based on gitstatus.

preview

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.

Why? ๐Ÿค”

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.

Installation โš™๏ธ

Zinit

zinit light-mode depth"1" for \
  romkatv/gitstatus \
  warbacon/zunder-prompt

Zap

plug "romkatv/gitstatus"
plug "warbacon/zunder-prompt"

Zgenom

if ! zgenom saved; then
  # ...
  zgenom load romkatv/gitstatus
  zgenom load warbacon/zunder-prompt
  # ...
fi

Zplug

zplug "romkatv/gitstatus", depth:1
zplug "warbacon/zunder-prompt", on:"romkatv/gitstatus", depth=1

Customization ๐ŸŽจ

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"

Thanks to