From ab88a647c02b2d9456edbf689a5a1163c257253e Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sun, 16 Apr 2023 21:47:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BE=D0=BF=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D1=91=D0=BD=D0=BD=D0=BE=D0=B9=20=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D1=81=D0=B8=D0=B8=20zinit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 42-zinit.zsh | 6 ++++-- 62-scripts.zsh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/42-zinit.zsh b/42-zinit.zsh index b7feec6..0b5175b 100644 --- a/42-zinit.zsh +++ b/42-zinit.zsh @@ -2,14 +2,16 @@ # vim: ft=sh declare -A ZINIT -ZINIT[HOME_DIR]="$ZSH_CACHE_DIR/zinit" +ZINIT[VERSION]="3.10.0" +ZINIT[HOME_DIR]="$ZSH_CACHE_DIR/zinit-${ZINIT[VERSION]}" ZINIT[PLUGINS_DIR]="$ZSH_CACHE_DIR/plugins" ZINIT[SNIPPETS_DIR]="$ZSH_CACHE_DIR/snippets" ZINIT[ZCOMPDUMP_PATH]="$ZSH_CACHE_DIR/zcompdump" ZPFX="$ZSH_CACHE_DIR/polaris" if [ ! -d "${ZINIT[HOME_DIR]}" ]; then - git clone --depth 1 https://github.com/zdharma-continuum/zinit "${ZINIT[HOME_DIR]}" + wget -q -O - "https://github.com/zdharma-continuum/zinit/archive/refs/tags/v${ZINIT[VERSION]}.tar.gz" | tar zxf - -C "$ZSH_CACHE_DIR" + sed -i 's/.*zinit-self-update -q//' "${ZINIT[HOME_DIR]}/zinit-autoload.zsh" zcompile "${ZINIT[HOME_DIR]}/zinit.zsh" fi diff --git a/62-scripts.zsh b/62-scripts.zsh index 666dee1..49c1cd6 100644 --- a/62-scripts.zsh +++ b/62-scripts.zsh @@ -3,7 +3,7 @@ # Обновление конфигурации zsh, менеджера zinit и плагинов zu() { - git -C "${ZDOTDIR}" pull && zinit update --parallel + zinit update --parallel --all exec zsh }