1
0
Fork 0
mirror of synced 2024-11-05 00:08:57 -05:00
zimfw/modules/history-substring-search/init.zsh
Eric Nielsen 1aa7d7a401 [history-substring-search] Only load terminfo feature of zsh/terminfo
like we did for the input module in 7861145, and to make modules
independent of each other, as discussed in #261.
2018-04-24 09:04:44 -05:00

11 lines
310 B
Bash

#
# Enable searching history with substrings
#
# Source script
source ${0:h}/external/zsh-history-substring-search.zsh || return 1
# Bind up and down keys
zmodload -F zsh/terminfo +p:terminfo
bindkey "${terminfo[kcuu1]}" history-substring-search-up
bindkey "${terminfo[kcud1]}" history-substring-search-down