zsh-nvm icon indicating copy to clipboard operation
zsh-nvm copied to clipboard

lazy loading causes delay on every command w/ spaceship-prompt theme

Open diminutivesloop opened this issue 3 years ago • 0 comments

When I have NVM_LAZY_LOAD enabled I experience a several second delay after every command I run before the prompt returns. This appears to be caused by the spaceship prompt attempting to determine the current Node.js version when it detects a Node.js project in the current directory. I understand why lazy loading is triggered in this case, but I don’t get why it’s happening every time I run a command. Isn’t lazy loading only supposed to happen once per session?

diminutivesloop avatar Mar 12 '21 20:03 diminutivesloop