.zshrc line to give suggestions based on previous commands typed in a prompt

What is the command to .zshrc file to zsh give me suggestions based on a previous commands I have already typed?

For example when I start typing

echo "

I get this:


and then I can move my up/down arrows to get suggestions of the commands that I had already typed?

I cannot find out what line do I need to add to .zshrc I hope someone here will know!



But what manjaro does is

source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

With that file being provided by zsh-autosuggestions:


You already get suggestions.
What else do you want?

Normally it is just a matter of hitting TAB once or twice
In Bash you can utilize the history by starting with:
CTRL + R … and then start to type - it’ll show matches from your history of previous commands that you issued

Should be similar in zsh - but I don’t use that so I don’t know.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.