4 ms·
If you're using zsh, you should try adding this to your .zshrc bindkey '\e[A' history-search-backward bindkey '\e[B' history-search-forward It tells zsh to se
by gommm 16y ago
If you're using zsh, you should try adding this to your .zshrc
bindkey '\e[A' history-search-backward
bindkey '\e[B' history-search-forward
It tells zsh to search backward and forward in the history for any line starting with the same string as what is currently entered when you press the up and down arrow... Helps saves a lot of time compared to always just using Ctrl-r.
I think there's an equivalent for bash, but I don't know it...
- gcr 16y agoMy bash uses readline, so I have this in my ~/.inputrc: "\e[5~": history-search-backward "\e[6~": history-search-forward This is for PageUp and PageDn.