zsh-autosuggestions logo

zsh-autosuggestions

github.com/zsh-users/zsh-autosuggestions

Fish-like autosuggestions for zsh

git clone https://github.com/zsh-users/zsh-autosuggestions
Stars
36k
Rank in field
Top 7%#34 of 513 by stars
Forks
…
Open issues
…
Contributors
…
Language
Shell
License
MIT
Last push
24 Jun 2025

What is zsh-autosuggestions?

zsh-autosuggestions provides Fish-like autosuggestions for zsh, showing command completions as you type based on history and tab-completion. It requires Zsh v4.3.11 or later and works by suggesting text after the cursor in a muted color that can be accepted with arrow keys.

Install & use

Install
git clone https://github.com/zsh-users/zsh-autosuggestions.git
Usage
# open zsh-users/zsh-autosuggestions and follow its README

zsh-users/zsh-autosuggestions is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.

Features

  • history-based command suggestions
  • completion-engine fallback strategy
  • configurable highlight style (color, bold, underline)
  • multiple suggestion strategies (history, completion, match prev cmd)
  • asynchronous fetching in zsh 5.0.8+
  • customizable widget mappings for accept/clear/execute

Pros

  • fast and unobtrusive suggestions
  • highly configurable highlight and behavior
  • works with Oh My Zsh via $ZSH CUSTOM
  • async mode prevents blocking

Cons

  • requires Zsh v4.3.11+
  • iTerm2 users may need color adjustments to see suggestions
  • async mode has ctrl+c bug in zsh < 5.0.8

Stars over time