zsh-autosuggestions is a popular Zsh plugin that displays gray, inline suggestions as you type, based on your shell history and other strategies. It feels a lot like “typeahead” for the terminal: the moment your input matches a past command prefix, a suggestion appears and you can accept it with a key (e.g., right arrow or end-of-line). The plugin is lightweight and fast, designed to keep suggestions responsive even on large histories by performing lookups asynchronously when possible. It’s highly configurable: you can change the suggestion strategy, tweak widget bindings, ignore certain patterns, and control when suggestions appear or are cleared. The plugin plays well with other Zsh staples like syntax highlighting and prompt frameworks, and it provides guidance for avoiding conflicts with custom keymaps.

Features

  • Proposes autosuggestions from history (recent commands) as you type into the shell buffer
  • Offers alternative suggestion strategy “completion” (based on what tab completion would suggest)
  • Supports partial accepts (accept up to cursor) and full accepts of suggestions via key bindings
  • Configurable styling of suggestions (foreground / background colors, bold, underline, etc.) via ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE
  • Ability to disable suggestions under certain conditions (large/specific buffer sizes, using patterns to ignore certain history entries)
  • Asynchronous suggestion fetching (in newer zsh versions) to avoid blocking during typing

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow zsh-autosuggestions

zsh-autosuggestions Web Site

Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of zsh-autosuggestions!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Registered

2025-09-19