add antidote modular/bundle/compile secquence

This commit is contained in:
2026-06-20 02:49:36 +01:00
parent 503c232b30
commit a43337e015
+6 -6
View File
@@ -27,14 +27,14 @@ zsh_plugins=${DOTFILES}/antidote/zsh_plugins
# Lazy-load antidote from its functions directory. # Lazy-load antidote from its functions directory.
fpath=($HOME/.antidote/functions $fpath) fpath=($HOME/.antidote/functions $fpath)
autoload -Uz antidote autoload -Uz antidote
zstyle ':antidote:bundle' use-friendly-names 'yes' zstyle ':antidote:bundle' use-friendly-names 'yes'
zstyle ':antidote:static' file "${DOTFILES}/antidote/zsh_plugins" zstyle ':antidote:static' file "${DOTFILES}/antidote/zsh_plugins"
zstyle ':antidote:static' zcompile 'yes' zstyle ':antidote:static' zcompile 'yes'
if [[ ! ${zsh_plugins} -nt ${zsh_plugins}.txt ]]; then if [[ ${zsh_plugins}.txt -nt ${zsh_plugins} ]]; then
echo "${$(antidote bundle <${zsh_plugins}.txt)//source/call_file}" >|${zsh_plugins} antidote bundle <${zsh_plugins}.txt >|${zsh_plugins}
#antidote bundle <${zsh_plugins}.txt >|${zsh_plugins}.compile if [[ ${zsh_plugins} -nt ${zsh_plugins}.zwc ]]; then
zcompile ${zsh_plugins}
fi
fi fi
call_file ${zsh_plugins} "antidote_plugin"
ZSH=$(antidote path ohmyzsh/ohmyzsh) ZSH=$(antidote path ohmyzsh/ohmyzsh)
call_file ${zsh_plugins} "antidote_plugin_compiled"