mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-21 20:11:03 +00:00
3.6 KiB
3.6 KiB
simplerich-zsh-theme
Overview
An oh-my-zsh theme.
Features
You can see the followings at once:
- Real Time
- Login User
- Working Directory
- Anaconda's Environment Name
- Rich Git Status
After command execution, you can see also:
- Command Execution Time
- Success/Error Hint
Install
- Clone Repo & Copy Theme.
# cd path/to/where_u_want_to_clone_the_repo
git clone --recursive https://github.com/philip82148/simplerich-zsh-theme
cp ./simplerich-zsh-theme/simplerich.zsh-theme ~/.oh-my-zsh/themes/
- Edit ~/.zshrc.
# file:~/.zshrc
# Find the line that reads ZSH_THEME="..." and replace it with the followings.
ZSH_THEME="simplerich"
source path/to/where_u_want_to_clone_the_repo/simplerich-zsh-theme/zsh-git-prompt/zshrc.sh
Attention
- These must be BEFORE the line
source $ZSH/oh-my-zsh.shin~/.zshrc. - Change the path of
source .../zsh-git-prompt/zshrc.shaccording to your environment. - If you comment out
source .../zsh-git-prompt/zshrc.shor you cannot usepythoncommand, you can use a simpler git status like the following:

- If you have installed Anaconda, remove the original display of the environment name.
conda config --set changeps1 False
- Load ~/.zshrc.
source ~/.zshrc
See Also: Overriding and adding themes, zsh-git-prompt
Trouble Shooting
On macOS, Command Not Found: gdate
- simplerich.zsh-theme depends on cmd
gdateto get current time in milliseconds. getgdateon macOS by runningbrew install coreutilsthensource ~/.zshrc. - See also #12.
On Linux, Command Not Found: bc
- simplerich.zsh-theme depends on cmd
bcto calculate the command running time cost. get bc on Linux thensource ~/.zshrc. - See also #13.
On Centos 7, Shell Exit
- It may be caused by set timer to zsh prompt.
- See also #4.
Extra Preferences
Zsh Plugins
iTerm2 Preferences
Color
- iTerm2: Settings -> Profiles -> Colors -> Color Presets -> Import
./simplerich.itermcolors
- Alternate terminal: Try Alternate terminal installation and configuration.
Status Bar
Font
- Install JetBrains Mono.
- iTerm2: Settings -> Appearance && settings -> Profiles -> Text -> Font



