The syntax highlighting is implemented by zdharma/fast-syntax-highlighting. By using default
theme with any terminal emulator color scheme of gruvbox-material, you can get a gruvbox-material syntax highlighting theme of zsh.
The prompt theme is gruvbox-material version of pure power, it depends on romkatv/powerlevel10k.
To use it, download .zsh-theme-gruvbox-material-dark or .zsh-theme-gruvbox-material-light and simply source it in your zshrc after powerlevel10k has been load:
source /path/to/.zsh-theme-gruvbox-material-*
Alternatively, if you are using zplugin, you can install the theme like this:
zplugin light romkatv/powerlevel10k
# dark version
zplugin snippet https://github.com/sainnhe/dotfiles/blob/master/.zsh-theme-gruvbox-material-dark
# light version
zplugin snippet https://github.com/sainnhe/dotfiles/blob/master/.zsh-theme-gruvbox-material-light
There are three modes of this prompt theme:
PURE_POWER_MODE=modern # use nerdfont characters in the prompt(default)
PURE_POWER_MODE=fancy # use unicode characters in the prompt
PURE_POWER_MODE=portable # use only ascii characters in the prompt
To switch between them, edit /path/to/.zsh-theme
, and change the value of PURE_POWER_MODE
.