From 4724c0b498bdddd42941bac80fe240ea74025f64 Mon Sep 17 00:00:00 2001 From: Vladislav Doster Date: Tue, 19 Mar 2024 18:06:22 -0500 Subject: [PATCH] fix(zinit-install): simplify protocol patterns 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 1ed3c4665..94069e375 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