mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-25 12:50:25 +00:00
16 lines
535 B
Bash
16 lines
535 B
Bash
#
|
|
# No plugin manager is needed to use this file. All that is needed is adding:
|
|
# source {where-unpacked}/history-search-multi-word.plugin.zsh
|
|
# to ~/.zshrc.
|
|
#
|
|
|
|
0="${(%):-%N}" # this gives immunity to functionargzero being unset
|
|
REPO_DIR="${0%/*}"
|
|
if [[ -z "$ZPLG_CUR_PLUGIN" && "${fpath[(r)$REPO_DIR]}" != $REPO_DIR ]]; then
|
|
fpath+=( "$REPO_DIR" )
|
|
fi
|
|
|
|
autoload history-search-multi-word
|
|
zle -N history-search-multi-word
|
|
zle -N history-search-multi-word-backwards history-search-multi-word
|
|
bindkey "^R" history-search-multi-word
|