use is-at-least to determine version
This commit is contained in:
parent
11aaff5614
commit
599add14b9
@ -3,9 +3,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# use smart URL pasting and escaping
|
# use smart URL pasting and escaping
|
||||||
if [[ ${ZSH_VERSION%.*} -ge 5.1 ]]; then
|
autoload -Uz is-at-least
|
||||||
autoload -Uz bracketed-paste-magic
|
if [[ ${ZSH_VERSION} != 5.1.1 ]]; then
|
||||||
zle -N bracketed-paste bracketed-paste-magic
|
if is-at-least 5.1; then
|
||||||
|
autoload -Uz bracketed-paste-magic
|
||||||
|
zle -N bracketed-paste bracketed-paste-magic
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
autoload -Uz url-quote-magic
|
autoload -Uz url-quote-magic
|
||||||
zle -N self-insert url-quote-magic
|
zle -N self-insert url-quote-magic
|
||||||
|
Reference in New Issue
Block a user