mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
Make plugin zsh standard compatible
This commit is contained in:
parent
5b44d8cea1
commit
2ec11f041d
3 changed files with 3 additions and 4 deletions
|
@ -14,10 +14,9 @@
|
|||
|
||||
HSMW_REPO_DIR="${0:h}"
|
||||
|
||||
if [[ ${zsh_loaded_plugins[-1]} != */history-search-multi-word && -z ${fpath[(r)${0:h}]} ]]
|
||||
then
|
||||
fpath+=( "${0:h}" )
|
||||
fi
|
||||
if [[ $PMSPEC != *f* ]] {
|
||||
fpath+=( "${0:h}/functions" )
|
||||
}
|
||||
|
||||
autoload history-search-multi-word hsmw-context-main
|
||||
zle -N history-search-multi-word
|
||||
|
|
Loading…
Reference in a new issue