# zsh-syntax-highlighting

> Fish-like syntax highlighting for commands as you type them in zsh

Source: https://talira.ai/catalog/zsh-syntax-highlighting-mhmwtj9w
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / terminal / customization](https://talira.ai/categories/developer-tools/terminal/customization), [developer tools / terminal / shell](https://talira.ai/categories/developer-tools/terminal/shell)
- Platforms: macos, linux[^3]
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- Backed by: [zsh-users](https://talira.ai/orgs/zsh-users.md)

zsh-syntax-highlighting colours the command you are typing at an interactive [Zsh](https://talira.ai/catalog/zsh-32j0xtmt.md) prompt, the way the fish shell does, so mistakes such as an unknown command or an unclosed quote stand out before you press Enter. It hooks into the Zsh Line Editor and must be sourced at the end of `.zshrc`. It installs from most Linux and BSD package managers and Homebrew, or with a plugin manager or framework such as [Oh My Zsh](https://talira.ai/catalog/oh-my-zsh-bfqv7jc9.md) or Antigen. It needs zsh 4.3.11 or newer.

## Links

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

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/zsh-syntax-highlighting>[^1]

## Problems it solves

- show me whether a command exists before I press Enter in zsh
- colour my zsh command line like fish does
- catch typos and unclosed quotes in shell commands as I type them

## Features

- highlights commands, options, strings and errors as you type at the zsh prompt
- catches unknown commands and syntax errors before you run them
- installs from Linux and BSD package managers or Homebrew
- works with Oh My Zsh, Antigen and other plugin managers
- requires zsh 4.3.11 or newer

## Trust

Overall: 0.52 out of 1.
Signals: maintenance 0.46, adoption 0.87, momentum 0.63, community 0.76, backing 0.30, extensibility 0.00.

- last commit 45 days ago
- 2 commits in the last 90 days
- 23.1k GitHub stars
- 77 contributors
- backed by zsh-users

## Related

- Works with [Zsh](https://talira.ai/catalog/zsh-32j0xtmt.md)
- Works with [Oh My Zsh](https://talira.ai/catalog/oh-my-zsh-bfqv7jc9.md)

## Sources

[^1]: https://formulae.brew.sh/api/formula/zsh-syntax-highlighting.json (checked 24 Nov 2026)
[^2]: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/COPYING.md (checked 24 Nov 2026)
[^3]: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md (checked 24 Nov 2026)
