projects
/
zsh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mode change
[zsh.git]
/
.zsh
/
plugins
/
history-substring-search.zsh
diff --git
a/.zsh/plugins/history-substring-search.zsh
b/.zsh/plugins/history-substring-search.zsh
index
53f707c
..
07f03ff
100644
(file)
--- a/
.zsh/plugins/history-substring-search.zsh
+++ b/
.zsh/plugins/history-substring-search.zsh
@@
-171,8
+171,12
@@
bindkey '\e[B' history-substring-search-down
#-----------------------------------------------------------------------------
setopt extendedglob
#-----------------------------------------------------------------------------
setopt extendedglob
-zmodload -F zsh/parameter
-
+if [[ $ZSH_VERSION == 4.3.<4->* || $ZSH_VERSION == 4.<4->* \
+ || $ZSH_VERSION == <5->* ]]; then
+ zmodload -F zsh/parameter
+else
+ zmodload zsh/parameter 2>/dev/null
+fi
#
# We have to "override" some keys and widgets if the
# zsh-syntax-highlighting plugin has not been loaded:
#
# We have to "override" some keys and widgets if the
# zsh-syntax-highlighting plugin has not been loaded: