Zsh theme base on appearance.
If you use zinit, you can add following code to your .zshrc. Then execute source .zshrc. After cloning done, you will see the theme take effect.
if [[ "$USER" == "root" ]]; then
PS1="%F{gray} %F{cyan}%c "
elif [[ "$OSTYPE" == darwin* ]]; then
PS1="%F{gray} %F{cyan}%c "
elif grep -Eq "CentOS" /etc/*-release; then
PS1="%F{magenta} %F{cyan}%c "
elif grep -Eq "Debian" /etc/*-release; then
PS1="%F{magenta} %F{cyan}%c "
elif grep -Eq "Kali" /etc/*-release; then
PS1="%F{blue} %F{cyan}%c "
else
PS1="%F{green}✓ %F{cyan}%c "
fi
zinit ice wait lucid atload
zinit ice lucid wait='!0'
zinit light honbey/mztYou can change the colors as you like.
You can find icons from Nerd Fonts.
Thanks to ohmyzsh/ohmyzsh
The theme duplicates many codes from ohmyzsh/ohmyzsh/lib/theme-and-appearance.zsh and ohmyzsh/ohmyzsh/themes/awesomepanda.zsh-theme. I only modify prompt and add different logos for different OS/user. Thanks to Robby Russell and ohmyzsh’s contributors.
Thanks to zdharma-continuum
Thanks to zdharma/zinit for providing the wonderful ZSH plugins manager.
Thanks to Nerd Fonts
Thanks to Nerd Fonts for providing the awesome fonts.
mzt is under the MIT license.

