An oh-my-zsh theme.
294
stars
135
forks
source link
ohmyzsh-theme-passion
Introduction
An oh-my-zsh theme;
![demo.png](https://github.com/ChesterYue/ohmyzsh-theme-passion/raw/main/demo/demo.png)
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
find ZSH_THEME
edit to ZSH_THEME="passion"
;
- 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](https://github.com/zsh-users/zsh-autosuggestions);
2. [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting);
#### iTerm2 Preferences
##### Color
* iTerm2: settings -> Profiles -> Colors -> Color Presets -> import ```./passion.itermcolors``` ![color.png](./image/color.png)
* alternate terminal: try [Alternate terminal installation and configuration](https://iterm2colorschemes.com/);
##### Status Bar
* iTerm2: settings -> Appearance && settings -> Profiles -> Session -> Configure Status Bar ![status_0.png](./image/status_0.png) ![status_1.png](./image/status_1.png)
##### Font
* install [JetBrains Mono](https://www.jetbrains.com/lp/mono/);
* iTerm2: settings -> Appearance && settings -> Profiles -> Text -> Font ![font.png](./image/font.png)