For posterity (I actually needed to install this today):
You need to install zsh-autosuggestions by installing the package from your distribution (Debian, Arch) and source it, or just run:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
in zsh and do exec zsh.
In .zshrc:
Relevant packages to install: git zsh zsh-syntax-highlightingThen:
WARNING: it downloads and executes Oh My Zsh automatically using git. You may want to review it before.If it suits you:
Works on macOS, Arch, Debian, Ubuntu, Fedora, Termux and probably in most places anyway.You may need this too: