antidote-bundle(1) | Antidote Manual | antidote-bundle(1) |
antidote bundle - download a bundle and print its source line
antidote bundle [<bundles>...]
antidote-bundle assembles your Zsh plugins. Bundles can be git repos, or local files or directories. If a plugin is a repo, it will be cloned if necessary. The zsh code necessary to load (source) the plugin is then printed.
antidote bundle gituser/gitrepo
antidote bundle $ZSH_CUSTOM/plugins/myplugin
antidote bundle ${ZDOTDIR:-$HOME}/.zlibs/myfile.zsh
Bundles also support annotations. Annotations allow you have finer grained control over your plugins. Annotations are used in the form 'keyword:value'.
Cloned repo directory names can be overridden with the following zstyle:
zstyle ':antidote:bundle' use-friendly-names 'yes'
Using the kind: annotation...
# a regular plugin (kind:zsh is implied, so it’s unnecessary)
antidote bundle zsh-users/zsh-history-substring-search kind:zsh
# add prompt plugins to $fpath
antidote bundle sindresorhus/pure kind:fpath
# add utility plugins to $PATH
antidote bundle romkatv/zsh-bench kind:path
# clone a repo for use in other ways
antidote bundle mbadolato/iTerm2-Color-Schemes kind:clone
# autoload a functions directory
antidote bundle sorin-ionescu/prezto path:modules/utility/functions kind:autoload
# defer a plugin to speed up load times
antidote bundle olets/zsh-abbr kind:defer
Using the branch: annotation...
# don’t use the main branch, use develop instead
antidote bundle zsh-users/zsh-autosuggestions branch:develop
Using the path: annotation...
# load oh-my-zsh
antidote bundle ohmyzsh/ohmyzsh path:lib
antidote bundle ohmyzsh/ohmyzsh path:plugins/git
Using the conditional: annotation...
# define a conditional function prior to loading antidote
function is_macos {
[[ $OSTYPE == darwin* ]] || return 1
}
# conditionally load a plugin using the function you made
antidote bundle ohmyzsh/ohmyzsh path:plugins/macos conditional:is_macos
See GitHub Issues: <https://github.com/mattmc3/antidote/issues>
MIT