Discover, install, and configure shell plugins with Fig Plugin Store →

Zsh Syntax Highlighting

Fish shell-like syntax highlighting for zsh

15.4k stars
1.2k forks

zsh-syntax-highlighing adds fish-like syntax highlighting for zsh

The plugin highlights commands while they are being typed into a zsh prompt in an interactive terminal. This helps in reviewing commands before running them, particularly in catching syntax errors.

Notes

zsh-syntax-highlighting should be the last plugin sourced in your list of plugins otherwise it may not work.

To implement your own highlighter, check out how to implement a new highlighter