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)#

Terminal window
brew install zsh-autosuggestions zsh-syntax-highlighting

2) Enable (add to ~/.zshrc)#

Terminal window
echo 'source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
echo 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
source ~/.zshrc

✅ Works immediately.


💡 One-line Takeaway
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/
Author
Alexander Lee
Published at
2026-01-29
License
CC BY-NC-SA 4.0