fix: cleanly skip trying to load zinit binary module if it hasn't been built

This commit is contained in:
Danielle McLean 2021-04-26 15:10:31 +10:00
parent 64c6dfe98f
commit f54e89b435

View file

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