ZSH_AUTOSUGGEST_STRATEGY=(history completion)

Category: Terminal Configuration

ZSH_AUTOSUGGEST_STRATEGY=(history completion)

Set autosuggestion sources to history first, then completion

By default, autosuggestions only use command history. Adding 'completion' as a fallback means you also get tab-completion-style suggestions when no history match exists. Makes the plugin useful even for commands you've never typed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.