Go to file
2024-04-23 21:05:50 +08:00
2023-03-27 00:14:05 +08:00
2023-03-05 18:09:35 +08:00
2023-03-04 23:47:39 +08:00
2020-11-22 18:20:19 +08:00
2023-03-27 00:15:06 +08:00
2023-05-19 16:47:42 +08:00

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
Description
An oh-my-zsh theme. But cost function removed.
Readme 30 MiB
Languages
Shell 100%