zsh-syntax-highlighting

Install command:
brew install zsh-syntax-highlighting

Fish shell like syntax highlighting for zsh

https://github.com/zsh-users/zsh-syntax-highlighting

License: BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/zsh-syntax-highlighting.json

Formula code: zsh-syntax-highlighting.rb on GitHub

Bottle (binary package) installation support provided.

Current versions:

stable ✅ 0.8.0
head ⚡️ HEAD

Uses from macOS: zsh (build, test)

To activate the syntax highlighting, add the following at the end of your .zshrc:
    source $HOMEBREW_PREFIX/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

If you receive "highlighters directory not found" error message,
you may need to add the following to your .zshenv:
    export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=$HOMEBREW_PREFIX/share/zsh-syntax-highlighting/highlighters

GitHub Packages downloads:

Last 30 days36,122
Downloads1,497,879
Analytics install events (30 days)4,847
Downloads / install events (30 days)7.5×

Source: GitHub Packages, fetched 2026-11-15T00:54:57Z. Analytics dates: 2026-10-16 to 2026-11-15. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs4,84211,98363,032
Installs (--HEAD)516119
Installs on Request4,84111,98163,018
Installs on Request (--HEAD)516119
Build Errors0