Awesome
ohmyzsh-theme-passion
Introduction
An oh-my-zsh theme;
Feature
- real time prompt;
- command running time cost prompt;
- command running error hint;
- git status prompt;
Usage
Basic Zsh Theme
Install
- clone repo:
git clone https://github.com/ChesterYue/ohmyzsh-theme-passion
; - copy theme:
cp ./ohmyzsh-theme-passion/passion.zsh-theme ~/.oh-my-zsh/themes/passion.zsh-theme
; - modify rc: open
~/.zshrc
findZSH_THEME
edit toZSH_THEME="passion"
; - execute rc:
source ~/.zshrc
;
- see also: Overriding and adding themes;
Trouble Shooting
macOS, command not found: gdate
- passion.zsh-theme depends on cmd
gdate
to get current time in milliseconds. getgdate
on macOS by runningbrew install coreutils
thensource ~/.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 thensource ~/.zshrc
; - see also: #13;
Centos 7, shell exit
- may caused by set timer to zsh prompt;
- see also: #4;
Zsh Plugins
iTerm2 Preferences
Color
<!-- cspell:disable-next-line -->- iTerm2: settings -> Profiles -> Colors -> Color Presets -> import
./passion.itermcolors
- alternate terminal: try Alternate terminal installation and configuration;
Status Bar
- iTerm2: settings -> Appearance && settings -> Profiles -> Session -> Configure Status Bar
Font
- install JetBrains Mono;
- iTerm2: settings -> Appearance && settings -> Profiles -> Text -> Font