From 4b8dd86bb462d3957f0e1c9328619f7a5a74dd56 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Mon, 3 May 2021 18:46:54 -0500 Subject: [PATCH] environment: Simplify nested conditional block Avoid unnecessary nesting for conditional block. --- modules/environment/init.zsh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/environment/init.zsh b/modules/environment/init.zsh index 836a6cd..3011f59 100644 --- a/modules/environment/init.zsh +++ b/modules/environment/init.zsh @@ -18,11 +18,9 @@ if [[ ${ZSH_VERSION} != 5.1.1 && ${TERM} != "dumb" ]]; then if is-at-least 5.2; then autoload -Uz bracketed-paste-url-magic zle -N bracketed-paste bracketed-paste-url-magic - else - if is-at-least 5.1; then - autoload -Uz bracketed-paste-magic - zle -N bracketed-paste bracketed-paste-magic - fi + elif is-at-least 5.1; then + autoload -Uz bracketed-paste-magic + zle -N bracketed-paste bracketed-paste-magic fi autoload -Uz url-quote-magic zle -N self-insert url-quote-magic