prezto/modules/precompile
tokiclover ffd4a3cf57 modules: added precompile-a zrecompile like func
a litte helper/module to (re)compile zsh functions/scripts found in fpath
to speed loading and execution (p-as-personal-recompile).
2014-09-25 20:48:58 +02:00
..
functions modules: added precompile-a zrecompile like func 2014-09-25 20:48:58 +02:00
init.zsh modules: added precompile-a zrecompile like func 2014-09-25 20:48:58 +02:00
README.md modules: added precompile-a zrecompile like func 2014-09-25 20:48:58 +02:00

Precompile - prezto zrecompile

This module compile all the parrent directories found in $fpath if writable. Or else, a '-s|--system-fpath' switch is available for priviledged users to (re)compile system wide functions/scripts to improve loading and execution.

Settings

This module support a single setting at the moment, a string that hold precompile command line options.

zstyle ':prezto:module:precompile' options '-f -s'

'-f|--fpath-append' enable appending/replacing element parent directory with element.zwc to get another loading/execution speed improvement.

zrecompile extra options (like -M option handy for scripts compilation) can be appended to that string as well.

Runtime (re)compilation

Of course, precompile function is available at runtime, so it is available to inspect and reompile directory if necessary. Unchanged directory will not be recompiled. Just expect a little delay the first time the module is enabled.

Authors