zsh
Go to file
Adam Kruszewski 2527617df4 Add links to zplug and oh-my-zsh 2023-05-13 11:46:09 +02:00
min-percent.zsh-theme Initial commit 2023-05-13 10:49:52 +02:00
readme.org Add links to zplug and oh-my-zsh 2023-05-13 11:46:09 +02:00
screen-shot.png Add readme and a screen shot 2023-05-13 11:36:53 +02:00

readme.org

min-percent zsh theme - a minimalist zsh theme with a % or # sign as the prompt terminator

Description

Minimalist zsh theme with a % or # sign as the prompt terminator.

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 „#”).

/adam/zsh-theme-min-percent/src/branch/master/screen-shot.png

Prior art

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.

Using zplug

  • Clone the repository to chosen location (assuming ~/Src/zsh-theme-min-percent)
  • Add zplug directive to load theme:

    zplug "~/Src/zsh-theme-min-percent", use:"min-percent.zsh-theme", from:local, as:theme

Using oh-my-zsh

  • Clone the repository to chosen location (assuming ~/Src/zsh-theme-min-percent)
  • Copy theme file so Oh-My-ZSH can find it:

    cp ~/Src/zsh-theme-min-percen/min-percent.zsh-theme ~/.oh-my-zsh/custom/themes/
  • Set theme in your .zshrc, before sourcing Oh-My-ZSH:

    ZSH_THEME=min-percent