127 words
1 minute
zsh-autosuggestions

I. zsh Plugins — Autosuggestions & Syntax Highlighting
Overview: Two essential zsh plugins for a better terminal experience:
zsh-autosuggestions provides auto-complete, parameter hints, and history-based suggestions; zsh-syntax-highlighting colorizes valid commands and flags errors in real time as you type.
1. macOS
- Command suggestions appear in gray while typing (pulled from shell history)
- Syntax highlighting colors valid commands and highlights mistakes inline
1) Install (Homebrew)
brew install zsh-autosuggestions zsh-syntax-highlighting2) Enable (add to ~/.zshrc)
echo 'source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrcecho 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrcsource ~/.zshrc✅ Works immediately.
💡 One-line Takeaway
Install both plugins via Homebrew, source them in
Install both plugins via Homebrew, source them in
~/.zshrc, and your shell gains history-based grey suggestions and live syntax coloring instantly. zsh-autosuggestions
https://lxy-alexander.github.io/blog/posts/tools/zsh-autosuggestions/