2.7 KiB
2.7 KiB
ohmyzsh-theme-passion
Introduction
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
~/.zshrcfindZSH_THEMEedit 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
gdateto get current time in milliseconds. getgdateon macOS by runningbrew install coreutilsthensource ~/.zshrc; - see also: #12;
Linux, command not found: bc
- passion.zsh-theme depends on cmd
bcto 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;
Extra Preferences
Zsh Plugins
iTerm2 Preferences
Color
- iTerm2: settings -> Profiles -> Colors -> Color Presets -> import
./passion.itermcolors
- alternate terminal: try Alternate terminal installation and configuration;
Status Bar
Font
- install JetBrains Mono;
- iTerm2: settings -> Appearance && settings -> Profiles -> Text -> Font



