3 ms·
I use pg up/pg dn for history searching and leave the arrows for simple up and down lines, like so (in zsh): [[ -n "${key[Up]}" ]] && bindkey "${key[Up]}"
by dbbolton 14y ago
I use pg up/pg dn for history searching and leave the arrows for simple up and down lines, like so (in zsh):
[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-search-backward
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" history-search-forward