mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 11:26:41 +00:00
fix(zshrc): only attempt to load zinit module if .so file exists
This commit is contained in:
2
zshrc
2
zshrc
@@ -24,7 +24,7 @@ ZINIT[HOME_DIR]="$HOME/.local/zsh/zinit"
|
|||||||
ZINIT[BIN_DIR]="${ZINIT[HOME_DIR]}/bin"
|
ZINIT[BIN_DIR]="${ZINIT[HOME_DIR]}/bin"
|
||||||
|
|
||||||
# Load zinit module if it exists. For more info, run: zinit module help
|
# 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")
|
module_path+=("${ZINIT[HOME_DIR]}/module/Src")
|
||||||
zmodload zdharma_continuum/zinit
|
zmodload zdharma_continuum/zinit
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user