1
0
Fork 0
mirror of synced 2024-11-23 07:45:34 -05:00
zimfw/modules/history-substring-search/init.zsh

16 lines
513 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
# Binding ^[[A/^[[B manually mean up/down works with history-substring-search both before and after zle-line-init
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# 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