zimfw/modules/history-substring-search/init.zsh

12 lines
310 B
Bash
Raw Normal View History

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