Skip to content

Instantly share code, notes, and snippets.

@e-schumann
Created October 14, 2019 12:56
Show Gist options
  • Save e-schumann/cdaaa0d3098ca87ee77bb5a5b1abe31d to your computer and use it in GitHub Desktop.
Save e-schumann/cdaaa0d3098ca87ee77bb5a5b1abe31d to your computer and use it in GitHub Desktop.

zsh

Syntax Highlighting

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.

Prompt

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

Customization

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment