ohmyzsh-theme-passion/README.md
2023-09-24 18:08:39 +09:00

3.6 KiB

simplerich-zsh-theme

Overview

An oh-my-zsh theme.

demo.png

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

  1. 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/
  1. 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.sh in ~/.zshrc.
  • Change the path of source .../zsh-git-prompt/zshrc.sh according to your environment.
  • If you comment out source .../zsh-git-prompt/zshrc.sh or you cannot use python command, you can use a simpler git status like the following:
    simpler-git-status.png
  1. If you have installed Anaconda, remove the original display of the environment name.
conda config --set changeps1 False
  1. 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 gdate to get current time in milliseconds. get gdate on macOS by running brew install coreutils then source ~/.zshrc.
  • See also #12.

On Linux, Command Not Found: bc

  • simplerich.zsh-theme depends on cmd bc to calculate the command running time cost. get bc on Linux then source ~/.zshrc.
  • See also #13.

On Centos 7, Shell Exit

Extra Preferences

Zsh Plugins

  1. zsh-autosuggestions
  2. zsh-syntax-highlighting
  3. zsh-completions
  4. zsh-history-substring-search

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