Skip to content

nocompile

nocompile prevents Zinit from compiling the pick''-selected file to .zwc bytecode. The ! variant inverts this: compile, but after make'' and atclone''.

Terminal window
zi ice nocompile # skip compilation entirely
zi ice nocompile'!' # compile, but AFTER make'' and atclone''

By default Zinit compiles the pick'' file at load time. Use nocompile when the file is generated at runtime (and thus doesn’t exist yet when Zinit tries to compile it), or when compilation is undesirable.

nocompile'!' is the complementary form: compilation is done but deferred until after make'' and atclone'' complete. This is useful when make'' or atclone'' install the scripts that pick'' points to.

Terminal window
# LS_COLORS: c.zsh is generated by atclone, so don't compile it
zi ice atclone"dircolors -b LS_COLORS > c.zsh" atpull'%atclone' pick"c.zsh" nocompile'!'
zi light trapd00r/LS_COLORS
# Disable compilation for a script that must stay uncompiled
zi ice pick"myscript.zsh" nocompile
zi light user/myplugin
  • compile
  • pick
  • make