Add backwards search

This commit is contained in:
Alexander Schäferdiek 2021-05-25 18:02:10 +02:00
parent 1e7bce189a
commit a5c12deb87

View file

@ -98,6 +98,8 @@ key[PageDown]=${terminfo[knp]}
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history [[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history [[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history
bindkey '^R' history-incremental-search-backward
if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
function zle-line-init () { function zle-line-init () {
printf '%s' "${terminfo[smkx]}" printf '%s' "${terminfo[smkx]}"