From a43337e0155ebd8cbabbdd07601cefd9e1f866b3 Mon Sep 17 00:00:00 2001 From: nick-gorse Date: Sat, 20 Jun 2026 02:49:36 +0100 Subject: [PATCH] add antidote modular/bundle/compile secquence --- antidote/config.zsh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/antidote/config.zsh b/antidote/config.zsh index 84bdcc0..040dcbf 100644 --- a/antidote/config.zsh +++ b/antidote/config.zsh @@ -27,14 +27,14 @@ zsh_plugins=${DOTFILES}/antidote/zsh_plugins # Lazy-load antidote from its functions directory. fpath=($HOME/.antidote/functions $fpath) autoload -Uz antidote - zstyle ':antidote:bundle' use-friendly-names 'yes' zstyle ':antidote:static' file "${DOTFILES}/antidote/zsh_plugins" zstyle ':antidote:static' zcompile 'yes' -if [[ ! ${zsh_plugins} -nt ${zsh_plugins}.txt ]]; then - echo "${$(antidote bundle <${zsh_plugins}.txt)//source/call_file}" >|${zsh_plugins} - #antidote bundle <${zsh_plugins}.txt >|${zsh_plugins}.compile +if [[ ${zsh_plugins}.txt -nt ${zsh_plugins} ]]; then + antidote bundle <${zsh_plugins}.txt >|${zsh_plugins} + if [[ ${zsh_plugins} -nt ${zsh_plugins}.zwc ]]; then + zcompile ${zsh_plugins} + fi fi -call_file ${zsh_plugins} "antidote_plugin" ZSH=$(antidote path ohmyzsh/ohmyzsh) - +call_file ${zsh_plugins} "antidote_plugin_compiled"