From f54e89b4354ed2786dfb647a167ea2897d5cdebf Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 26 Apr 2021 15:10:31 +1000 Subject: [PATCH] fix: cleanly skip trying to load zinit binary module if it hasn't been built --- config/zsh/all/0-zinit-module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/zsh/all/0-zinit-module b/config/zsh/all/0-zinit-module index b59a739..5d0d8e1 100644 --- a/config/zsh/all/0-zinit-module +++ b/config/zsh/all/0-zinit-module @@ -1,6 +1,6 @@ #! zsh ZINIT_HOME=${XDG_CACHE_HOME:-~/.cache}/zsh/zinit -if [[ -d $ZINIT_HOME/bin/zmodules/Src/zdharma ]]; then +if [[ -e $ZINIT_HOME/bin/zmodules/Src/zdharma/zplugin.so ]]; then module_path+=( $ZINIT_HOME/bin/zmodules/Src ) zmodload zdharma/zplugin fi