𝐃𝐚𝐫𝐤 | 𝐋𝐢𝐠𝐡𝐭 |
---|---|
![]() |
![]() |
The syntax highlighting is implemented by zdharma/fast-syntax-highlighting. By using default
theme with any terminal emulator color scheme of edge, you can get a edge syntax highlighting theme of zsh.
The prompt theme is edge version of pure power, it depends on romkatv/powerlevel10k.
To use it, simply source this file in your zshrc after powerlevel10k has been load:
# for light version
source /path/to/edge/zsh/.zsh-theme-edge-light
# for dark version
source /path/to/edge/zsh/.zsh-theme-edge-dark
Alternatively, if you are using zinit(formerly known as zplugin, highly recommended), you can install the theme like this:
zinit light romkatv/powerlevel10k
# for dark version
zinit snippet https://github.com/sainnhe/edge/raw/master/zsh/.zsh-theme-edge-dark
# for light version
zinit snippet https://github.com/sainnhe/edge/raw/master/zsh/.zsh-theme-edge-light
There are three modes of this prompt theme:
PURE_POWER_MODE=modern # use nerdfont characters in the prompt
PURE_POWER_MODE=fancy # use unicode characters in the prompt(default)
PURE_POWER_MODE=portable # use only ascii characters in the prompt
To switch between them, edit /path/to/edge/zsh/.zsh-theme-*
, and change the value of PURE_POWER_MODE
.