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