mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +00:00
Make the plugin standalone (*.plugin.zsh can be simply sourced)
This commit is contained in:
parent
f632a186d7
commit
7949d70121
1 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,14 @@
|
|||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue