git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

Category: Terminal Configuration

git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

Install zsh-syntax-highlighting for Oh My Zsh

Clones the plugin into Oh My Zsh's custom plugin directory. After cloning, add 'zsh-syntax-highlighting' to the plugins=() array in ~/.zshrc. Must be the last plugin in the array to work correctly.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.