Make plugin zsh standard compatible

This commit is contained in:
Grigorii Horos 2021-12-07 12:27:42 +02:00
parent 5b44d8cea1
commit 2ec11f041d
No known key found for this signature in database
GPG key ID: 690E27A17D89A380
3 changed files with 3 additions and 4 deletions

View file

@ -14,10 +14,9 @@
HSMW_REPO_DIR="${0:h}" HSMW_REPO_DIR="${0:h}"
if [[ ${zsh_loaded_plugins[-1]} != */history-search-multi-word && -z ${fpath[(r)${0:h}]} ]] if [[ $PMSPEC != *f* ]] {
then fpath+=( "${0:h}/functions" )
fpath+=( "${0:h}" ) }
fi
autoload history-search-multi-word hsmw-context-main autoload history-search-multi-word hsmw-context-main
zle -N history-search-multi-word zle -N history-search-multi-word