From bb0518a166471ea92eccfd84d6375668535960f3 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 6 Jan 2025 10:28:32 +0000 Subject: [PATCH] fix(zshrc): only attempt to load zinit module if .so file exists --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 685c265..98f6c62 100644 --- a/zshrc +++ b/zshrc @@ -24,7 +24,7 @@ ZINIT[HOME_DIR]="$HOME/.local/zsh/zinit" ZINIT[BIN_DIR]="${ZINIT[HOME_DIR]}/bin" # Load zinit module if it exists. For more info, run: zinit module help -if [ -d "${ZINIT[HOME_DIR]}/module/Src/zdharma_continuum" ]; then +if [ -f "${ZINIT[HOME_DIR]}/module/Src/zdharma_continuum/zinit.so" ]; then module_path+=("${ZINIT[HOME_DIR]}/module/Src") zmodload zdharma_continuum/zinit fi