From e8c3205a2fa88e26e4e8dbe34374ddf40720ae36 Mon Sep 17 00:00:00 2001 From: vladislav doster <10052309+vladdoster@users.noreply.github.com> Date: Wed, 20 Mar 2024 01:18:37 -0500 Subject: [PATCH] fix(zinit-install): simplify protocol pattern (#645) Signed-off-by: Vladislav Doster --- zinit-install.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zinit-install.zsh b/zinit-install.zsh index 1ed3c466..94069e37 100644 --- a/zinit-install.zsh +++ b/zinit-install.zsh @@ -414,7 +414,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { ) || return $? } elif [[ $tpe = github ]] { case ${ICE[proto]} in - (|https|git|http|ftp|ftps|rsync|ssh) + (|ftp(|s)|git|http(|s)|rsync|ssh) :zinit-git-clone() { command git clone --progress ${(s: :)ICE[cloneopts]---recursive} \ ${(s: :)ICE[depth]:+--depth ${ICE[depth]}} \ @@ -886,8 +886,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { ZINIT[annex-multi-flag:pull-active]=${${${(M)update:#-u}:+${ZINIT[annex-multi-flag:pull-active]}}:-2} ( - if [[ $url = (http|https|ftp|ftps|scp)://* ]] { - # URL + if [[ $url = (ftp(|s)|http(|s)|scp)://* ]] { ( () { setopt localoptions noautopushd; builtin cd -q "$local_dir"; } || return 4