Lazy loading command setup
This is a pattern one can use to post-pone expensive setup calls, shortening shell startup time:
However, the zsh
completion system seems sofisticated enough to handle this out of the box, as long as completion scripts are supplied in the correct way. Take a look in /usr/share/zsh/site-functions
.
A similar pattern can be used to load tools like nvm
on demand:
Last updated