The most useful thing for me is making the up arrow only list completions starting with what I already typed. So if I type ls<Up> it will only list completion items starting with ls. I find it much more useful/accurate than <C-r> searching.
I’ve been using zsh-history-substring-search which returns items containing the string anywhere (like <C-r> search) on the <Up> key. I usually do want to match on some middle part of the command, even though I do sometimes run something that I don’t want because I do it too fast :D
Also worth reading:
bash(1)
.The most useful thing for me is making the up arrow only list completions starting with what I already typed. So if I type
ls<Up>
it will only list completion items starting withls
. I find it much more useful/accurate than<C-r>
searching.In zshrc:
And inputrc:
I’ve been using zsh-history-substring-search which returns items containing the string anywhere (like
<C-r>
search) on the<Up>
key. I usually do want to match on some middle part of the command, even though I do sometimes run something that I don’t want because I do it too fast :D