fix(zshrc): only attempt to load zinit module if .so file exists

This commit is contained in:
Jim Myhrberg
2025-01-06 10:28:32 +00:00
parent bb538ee33b
commit bb0518a166

2
zshrc
View File

@@ -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