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

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

Bottle JSON API: /api/bottle/zsh-syntax-highlighting.json

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

Bottle (binary package) installation support provided for:

Intel monterey
big sur
catalina
mojave
high sierra
64-bit linux
Apple Silicon monterey
big sur

Current versions:

stable 0.7.1
head ⚡️ HEAD
To activate the syntax highlighting, add the following at the end of your .zshrc:
    source $(brew --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=$(brew --prefix)/share/zsh-syntax-highlighting/highlighters

Analytics (macOS):

Installs (30 days)
zsh-syntax-highlighting 9,727
Installs on Request (30 days)
zsh-syntax-highlighting 9,726
Build Errors (30 days)
zsh-syntax-highlighting 0
Installs (90 days)
zsh-syntax-highlighting 29,308
Installs on Request (90 days)
zsh-syntax-highlighting 29,301
Installs (365 days)
zsh-syntax-highlighting 125,351
zsh-syntax-highlighting --HEAD 3
Installs on Request (365 days)
zsh-syntax-highlighting 125,309
zsh-syntax-highlighting --HEAD 3

Analytics (Linux):

Installs (30 days)
zsh-syntax-highlighting 177
zsh-syntax-highlighting --HEAD 3
Installs on Request (30 days)
zsh-syntax-highlighting 178
zsh-syntax-highlighting --HEAD 3
Build Errors (30 days)
zsh-syntax-highlighting 0
Installs (90 days)
zsh-syntax-highlighting 565
zsh-syntax-highlighting --HEAD 3
Installs on Request (90 days)
zsh-syntax-highlighting 567
zsh-syntax-highlighting --HEAD 3
Installs (365 days)
zsh-syntax-highlighting 1,831
zsh-syntax-highlighting --HEAD 3
Installs on Request (365 days)
zsh-syntax-highlighting 1,834
zsh-syntax-highlighting --HEAD 3
Fork me on GitHub