1aa7d7a401
like we did for the input module in 7861145
, and to make modules
independent of each other, as discussed in #261.
11 lines
310 B
Bash
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
|