Based on astro theme.
-
- When an error is executed.
-
- Prompt turns red.
-
- Show ✗ when working tree not clean.
-
- Show ● when working tree clean(after commit).
-
- Show different username.
apt install zsh
dnf install zsh
pacman -S zsh
chsh -s /bin/zsh
# /etc/passwd: modify /bin/zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/daotoyi/dyzsh-zsh-theme.git
- Locate the position
cp dyzsh-zsh-theme/dyzsh.zsh-theme ~/.oh-my-zsh/themes
- Set the theme variable
Change the variable ZSH_THEME=dyzsh
in ~/.zshrc
.
- Reload configuration
source ~/.zshrc