workflowstacks
ai-agent

zsh-autosuggestions: Complete Commands Faster

Get instant command suggestions with zsh-autosuggestions, a must-have for founders working with zsh, with 36k+ GitHub stars
35,966 stars1,935 forksShellHealth Score 9/10Updated 6/24/2025100% free · open source
What it does

zsh-autosuggestions provides instant command suggestions as you type in your zsh terminal, drawing from your command history to suggest possible completions

Install / run
git clone https://github.com/zsh-users/zsh-autosuggestions.git; echo 'source /path/to/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
When to use it
  • When working with frequently used commands and wanting to reduce typing time
  • When exploring a new system or project and needing to quickly find available commands
  • When trying to recall complex or hard-to-remember commands
Quick start
  1. 1Clone the zsh-autosuggestions repository using git clone https://github.com/zsh-users/zsh-autosuggestions.git
  2. 2Add the source line to your ~/.zshrc file: echo 'source /path/to/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
  3. 3Restart your terminal or run source ~/.zshrc to apply the changes
  4. 4Start typing a command and press the right arrow key to accept a suggestion
  5. 5Customize the suggestion color by adding the following line to your ~/.zshrc file: 'ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=12"'
Ready-to-paste prompt
Type 'git ' and then press the right arrow key to accept a suggested Git command, such as 'git status'
Heads up: Make sure you have zsh installed and set as your default shell, as zsh-autosuggestions only works with zsh and not with other shells like bash
Saves to your device

Topics

autocomplete
autosuggest
fish
shell
zsh
zsh-autosuggestions
How zsh-autosuggestions: Complete Commands Faster works
Codeflow
Free to inspect

Zsh-autosuggestions: Complete Commands Faster is a small Shell project (~1.4k lines across 14 code files, plus 27 test files). Setup is light: runs with Docker. Last commit 14 months ago, MIT license, has a test suite.

Size
Small codebase
~1.4k lines · 14 code files · 12 min skim
Setup
Light setup
Runs with Docker.
Runs on
Ruby · Docker
No API keys detected
Shell 63%Ruby 36%Makefile 1%Dockerfile 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    src/async.zsh
    Inside src/ — the main logic begins here
What's in each folder
src/Core code — the actual logic11 files
spec/Tests — proof it works27 files
.github/CI / automation (GitHub Actions)3 files
READMEHas testsDocumentedCI checksDocker readyMIT licenseLast update 14 mo ago
Quick Actions
Details
Creator
zsh-users
Language
Shell
Category
ai-agent
Published
10/26/2013

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.