Speed up typing of frequently-used commands by accepting suggestions with a single keypress.
Reduce typos and mistakes when entering complex commands by seeing the full command before executing it.
Discover and remember command syntax by seeing suggestions based on your own past usage patterns.
Navigate your shell faster without needing to manually search through history or use tab completion.
zsh-autosuggestions is a plugin for Zsh, a popular Unix command-line shell, that shows command suggestions in gray text as you type, based on your command history. The problem it solves is that retyping commands you have used before is tedious and slow. Fish, another shell, pioneered this approach, and this plugin brings the same behavior to Zsh. The way it works is straightforward: as you type each character, the plugin looks through your shell history (and optionally your tab-completion candidates) to find the most recent command that starts with what you have typed so far. If it finds a match, the rest of that command appears grayed out to the right of your cursor. You accept the suggestion by pressing the right arrow key or End key, which fills in the full command without you having to type the rest. If you keep typing, the suggestion updates dynamically to match your new input. You can also accept only one word at a time using a separate keybinding. Installation is straightforward: you clone the repository, add a single line to your .zshrc configuration file, and the plugin activates automatically in every new terminal session. It is compatible with Oh My Zsh, Prezto, and other Zsh framework managers, so users of those frameworks can install it with even less manual setup. A developer or system administrator who uses Zsh as their terminal shell and wants faster command-line navigation without memorizing full command syntax would use zsh-autosuggestions. It is written in Shell script and works on any Unix system running Zsh.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.