Multiple commands to trigger lazy loading (znap function) #279
Unanswered
michaeldebetaz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone 👋
I am very happy with
znap
and, as many, I use it with the nvm plugin. As nvm takes forever to load, I leverage the very usefulznap function nvm load_nvm()
trick that saves me time when loading zsh.But I sometimes need to trigger the lazy loading with other commands, like
npm
npx
ornvim
.Here is what I do in my .zshrc file to ensure that it triggers for each command:
Is this the correct way to do so or am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions