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

15 lines
418 B
Bash
Raw Normal View History

2015-12-15 06:12:17 +01:00
#
# enables searching history with substrings
#
# source script
source ${0:h}/external/zsh-history-substring-search.zsh || return 1
# bind UP and DOWN keys
2015-12-19 15:48:29 +01:00
bindkey "${terminfo[kcuu1]}" history-substring-search-up
bindkey "${terminfo[kcud1]}" history-substring-search-down
2015-12-15 06:12:17 +01:00
# bind UP and DOWN arrow keys (compatibility fallback)
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down