Awesome
dyzsh theme
Based on astro theme.
Screenshots
Instuctions
-
- When an error is executed.
-
- Prompt turns red.
-
- Show <font color=#FF0000>✗</font> when working tree not clean.
-
- Show <font color=#008000>●</font> when working tree clean(after commit).
-
- Show different username.
Install
zsh
apt install zsh
dnf install zsh
pacman -S zsh
chsh -s /bin/zsh
# /etc/passwd: modify /bin/zsh
oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Clone
git clone https://github.com/daotoyi/dyzsh-zsh-theme.git
Config
- 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