mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 08:08:00 +00:00
environment: Simplify nested conditional block
Avoid unnecessary nesting for conditional block.
This commit is contained in:
parent
d04a6ef459
commit
8edc5e9323
@ -18,11 +18,9 @@ if [[ ${ZSH_VERSION} != 5.1.1 && ${TERM} != "dumb" ]]; then
|
|||||||
if is-at-least 5.2; then
|
if is-at-least 5.2; then
|
||||||
autoload -Uz bracketed-paste-url-magic
|
autoload -Uz bracketed-paste-url-magic
|
||||||
zle -N bracketed-paste bracketed-paste-url-magic
|
zle -N bracketed-paste bracketed-paste-url-magic
|
||||||
else
|
elif is-at-least 5.1; then
|
||||||
if is-at-least 5.1; then
|
autoload -Uz bracketed-paste-magic
|
||||||
autoload -Uz bracketed-paste-magic
|
zle -N bracketed-paste 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
|
||||||
|
Loading…
Reference in New Issue
Block a user