Zsh plugin: zsh-autosuggestions

From wikinotes

displays first completion as you type.

Documentation

github https://github.com/zsh-users/zsh-autosuggestions
configuration variables https://github.com/zsh-users/zsh-autosuggestions/blob/master/src/config.zsh

Install

Install using zsh antigen.

Configuration

# colour of preview text
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE=8

# do not try to complete lines with more than N chars
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20

# array of zsh autocompletion widgets to ignore completions for
ZSH_AUTOSUGGEST_IGNORE_WIDGETS=(beep yank)  

# non-blocking suggestions
ZSH_AUTOSUGGEST_USE_ASYNC=1

# disable shift+a, $, etc. triggering autocompletion (just tab)
export ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=()