Skip to content

honbey/mzt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My zsh theme

Zsh theme base on appearance.

Usage

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/mzt

You can change the colors as you like.

Screen Shot

Under macOS: macos.png

Under CentOS: centos.png

You can find icons from Nerd Fonts.

Thanks

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/zinit for providing the wonderful ZSH plugins manager.

Thanks to Nerd Fonts

Thanks to Nerd Fonts for providing the awesome fonts.

LICENSE

mzt is under the MIT license.

About

My zsh theme and configuration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages