zsh-nvm
zsh-nvm copied to clipboard
lazy loading causes delay on every command w/ spaceship-prompt theme
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?