CocoaEngineering
FORMULAv0.8.0

zsh-syntax-highlighting for macOS

Fish shell like syntax highlighting for zsh

Installation on macOS (Apple Silicon & Intel)

brew install zsh-syntax-highlighting

Package Metadata

Identifierzsh-syntax-highlighting
Current Version0.8.0
Tap Repositoryhomebrew/core
LicenseBSD-3-Clause
Upstream Homepagehttps://github.com/zsh-users/zsh-syntax-highlighting
Last Verified2026-11-26T14:43:31Z

Engineering Caveats

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
Browse macOS Packages A–Z