2016-05-26 07:14:39 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2016-06-10 03:17:46 +00:00
|
|
|
0="${(%):-%N}" # this gives immunity to functionargzero being unset
|
2016-05-26 07:14:39 +00:00
|
|
|
REPO_DIR="${0%/*}"
|
|
|
|
if [[ -z "$ZPLG_CUR_PLUGIN" && "${fpath[(r)$REPO_DIR]}" != $REPO_DIR ]]; then
|
|
|
|
fpath+=( "$REPO_DIR" )
|
|
|
|
fi
|
|
|
|
|
2016-05-22 07:13:27 +00:00
|
|
|
autoload history-search-multi-word
|
2016-05-22 06:58:00 +00:00
|
|
|
zle -N history-search-multi-word
|
|
|
|
zle -N history-search-multi-word-backwards history-search-multi-word
|
2016-09-20 06:46:46 +00:00
|
|
|
zle -N history-search-multi-word-pbackwards history-search-multi-word
|
|
|
|
zle -N history-search-multi-word-pforwards history-search-multi-word
|
2016-05-22 06:58:00 +00:00
|
|
|
bindkey "^R" history-search-multi-word
|