/ohmyzsh-theme-passion

An oh-my-zsh theme.

Primary LanguageShellMIT LicenseMIT

ohmyzsh-theme-passion

Introduction

An oh-my-zsh theme; demo.png

Feature

  • real time prompt;
  • command running time cost prompt;
  • command running error hint;
  • git status prompt;

Usage

Basic Zsh Theme

Install

  1. clone repo: git clone https://github.com/ChesterYue/ohmyzsh-theme-passion;
  2. copy theme: cp ./ohmyzsh-theme-passion/passion.zsh-theme ~/.oh-my-zsh/themes/passion.zsh-theme;
  3. modify rc: open ~/.zshrc find ZSH_THEME edit to ZSH_THEME="passion";
  4. execute rc: source ~/.zshrc;

Trouble Shooting

macOS, command not found: gdate
  • passion.zsh-theme depends on cmd gdate to get current time in milliseconds. get gdate on macOS by running brew install coreutils then source ~/.zshrc;
  • see also: #12;
Linux, command not found: bc
  • passion.zsh-theme depends on cmd bc to calculate the command running time cost. get bc on Linux then source ~/.zshrc;
  • see also: #13;
Centos 7, shell exit

Extra Preferences

Zsh Plugins

  1. zsh-autosuggestions;
  2. zsh-syntax-highlighting;

iTerm2 Preferences

Color
Status Bar
  • iTerm2: settings -> Appearance && settings -> Profiles -> Session -> Configure Status Bar status_0.png status_1.png
Font
  • install JetBrains Mono;
  • iTerm2: settings -> Appearance && settings -> Profiles -> Text -> Font font.png