diff --git a/.gitignore b/.gitignore index 234c2f9..bdad406 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.zwc .AppleDouble .SyncArchive/* .SyncID diff --git a/zshrc b/zshrc index 676556d..337ebde 100644 --- a/zshrc +++ b/zshrc @@ -26,6 +26,12 @@ declare -A ZINIT 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[BIN_DIR]}/zmodules/Src/zdharma" ]; then + module_path+=("${ZINIT[BIN_DIR]}/zmodules/Src") + zmodload zdharma/zplugin +fi + # Ask to clone Zinit if it's not already available on disk. [ ! -d "${ZINIT[BIN_DIR]}" ] && read -q "REPLY?Zinit not installed, clone to ${ZINIT[BIN_DIR]}? [y/N]:" &&