AmyangXYZ / zhiyin-zsh-theme

Zhiyin dance in zsh prompt
MIT License
67 stars 4 forks source link

Zhiyin-zsh-theme

Inspired by Zhiyin, emoji-ps1 and built on ys-zsh-theme

Installation

  1. Install Zhiyin.otf font, select it in your iTerm2 (under Non-ASCII font) and add it to your VS Code's font family.
  2. cp zhiyin.zsh-theme ~/.oh-my-zsh/themes/, or just add this code snippet to your favourite zsh theme.

Zhiyin Sing

Sing upon ERR signal. Enable by adding below to zhiyin.zsh-theme, and copy niganma.mp3 somewhere you like.

function zhiyin_sing {
    afplay ~/Downloads/niganma.mp3
}

trap zhiyin_sing ERR