System Serviceszshautosuggestionsshellproductivity

zsh-autosuggestions

Fish-like fast/unobtrusive autosuggestions for zsh. As you type commands, suggestions appear in muted gray color after the cursor.

Description

zsh-autosuggestions provides fast and unobtrusive command-line completions for the zsh shell, mimicking the autosuggestion feature from the Fish shell. It enhances user productivity by offering context-aware suggestions based on command history as you type.

Use cases include streamlining repetitive command entry in terminal sessions, particularly beneficial for cybersecurity professionals and system administrators working extensively in Kali Linux environments. The tool integrates seamlessly with zsh, displaying suggestions without disrupting workflow.

It depends on zsh and has a small installed size of 46 KB, making it lightweight for deployment on resource-constrained systems.

How It Works

As you type commands, the tool displays a completion suggestion after the cursor in muted gray color. Pressing the right-arrow key or End at the buffer end accepts the full suggestion, replacing the command line buffer contents. Invoking the forward-word widget partially accepts the suggestion up to the cursor position.

Installation

bash
sudo apt install zsh-autosuggestions

Examples

Suggestion appears in gray after cursor
type partial command
Accepts full suggestion, replaces buffer
→ (right arrow at end)
Accepts full suggestion, replaces buffer
End (at end of buffer)
Partially accepts suggestion to cursor position
forward-word widget
Partially accepts suggestion up to word boundary
Ctrl+F (forward-word)
Offers matching history command as suggestion
type history command prefix
Updated 2026-04-16kali.org ↗