Hacker News new | ask | show | jobs
by seb314 2345 days ago
> I like to see autocomplete as a history

Not sure if I understand correctly:

Ctrl-r shows command history, filtered by fzf as you type

I find that particularly useful for frequent stuff that I don't bother to put in a script. Optionally add some search keywords in a trailing comment.

(might be not zsh itself, but oh-my-zsh or so)

1 comments

If you press tab twice in bash, it will display a list of completions and then another prompt below. If you hit tab again, it will generate another list of completions and another prompt. You should be able to still see the previous list of completions above. Zsh reuses the prompt and redraws the completion list, so once I hit tab, I cannot see what my previous completion list looked like.