Skip to content

run-atpull

run-atpull forces the atpull'' hook to run on every zinit update, even when there are no new commits to download.

Terminal window
zi ice run-atpull

Normally atpull'' is skipped when zinit update finds no new commits. run-atpull overrides this gate so the hook always fires. It is a flag ice — it takes no value.

Useful when the hook performs actions that must happen unconditionally (e.g. regenerating a compiled cache, re-running a configuration script).

Terminal window
# Always re-run the generation script even if the repo did not change
zi ice atclone"./gen.sh > output.zsh" atpull"%atclone" run-atpull src"output.zsh"
zi light some/plugin
  • atpull
  • atclone