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
sudo apt install zsh-autosuggestionsExamples
type partial command→ (right arrow at end)End (at end of buffer)forward-word widgetCtrl+F (forward-word)type history command prefix