compile
Summary
Section titled “Summary”compile'' specifies additional files to compile to .zwc bytecode beyond the file
selected by pick''. It accepts a glob pattern and supports brace expansion.
Syntax / Usage
Section titled “Syntax / Usage”zi ice compile"*.zsh"zi ice compile"{lib/*,functions/*}.zsh"Details
Section titled “Details”Zinit automatically compiles the pick''-selected file. compile'' extends that to
additional files. Compiled .zwc files load faster because Zsh skips parsing.
The pattern supports brace expansion (e.g. {a/*,b*}) in addition to standard globs.
Examples
Section titled “Examples”# Compile all .zsh files in the plugin directoryzi ice compile"*.zsh"zi light user/large-plugin
# Compile specific subdirectorieszi ice compile"{lib,src}/*.zsh"zi light user/structured-pluginSee Also
Section titled “See Also”- nocompile
- pick