1
0
Fork 0
mirror of synced 2024-11-30 03:05:35 -05:00
zimfw/modules/history-substring-search/init.zsh
Eric Nielsen d562acc4c0 [history-substring-search] Remove redundant defaults
for options already defined, with the same values, in
`zsh-history-substring-search.zsh`. See
be0fe1fca9/zsh-history-substring-search.zsh (L46-L48)

Closes #189
2017-07-17 16:15:51 -03:00

14 lines
418 B
Bash

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