You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 useful znap 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 npmnpx or nvim.
Here is what I do in my .zshrc file to ensure that it triggers for each command:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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