-
Notifications
You must be signed in to change notification settings - Fork 279
Cookbook
DC* edited this page Nov 9, 2016
·
13 revisions
In order to develop and load a plugin with Antigen you should configure the plugin as follows:
# Disable antigen's cache to always load latest changes from the plugin
export _ANTIGEN_CACHE_ENABLED=false
# Pass --no-local-clone to antigen's bundle to tell antigen to load the plugin
# from /path/to/plugin rather than cloning it
antigen bundle /path/to/plugin --no-local-clone
# Don't forget to tell antigen that you're done
antigen apply
Use antigen theme
in the case you're developing a theme rather than a bundle.
If your bundle do use compinit in some way remember to always refresh your .zcompdump
file. The easiest way is to run:
rm ~/.zcompdump*
If you need to load antigen faster you may load bundles statically from cache. This way you can avoid loading and running antigen.
Example:
# If there is cache available
if [[ -f ${ADOT:-$HOME/.antigen}/.cache/.zcache-payload ]]; then
# Load bundles statically
source ${ADOT:-$HOME/.antigen}/.cache/.zcache-payload
# You will need to call compinit
autoload -Uz compinit
compinit -d ${HOME}/.zcompdump
else
# If there is no cache available do load and execute antigen
source $ANTIGEN/antigen.zsh
# I'm using antigen-init here but your usual antigen-bundle,
# antigen-theme, antigen-apply will work as well
antigen init $ZSH_CUSTOM/.antigenrc
fi
This way you can greatly improve performance.
Wiki - Bug tracker - Roadmap - Contact - Copyright