sudo apt install zsh-syntax-highlighting

Category: Terminal Configuration

sudo apt install zsh-syntax-highlighting

Install zsh syntax highlighting plugin

Highlights commands as you type: valid commands in green, errors in red, strings in yellow. Makes typos instantly visible before you press Enter. After installing, add `source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh` to .zshrc.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.