From f0709a21bb8a76c4f8f55975c999b1d223635757 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sat, 27 Aug 2016 11:18:02 +0100 Subject: [PATCH] Clarify `NVM_LAZY_LOAD` must be set before `zsh-nvm` is loaded --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 20d8fa7..db673ca 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,9 @@ Note: If `nvm` doesn't exist in this directory it'll be automatically installed ### Lazy Loading -If you find `nvm` adds too much lag to your shell startup you can enable lazy loading by exporting the `NVM_LAZY_LOAD` environment variable and setting it to `true`. Lazy loading is around 70 times faster to load, however the first time you run `nvm`, `npm`, `node` or a global module you'll get a slight delay while `nvm` loads first. You'll only get this delay once per session. +If you find `nvm` adds too much lag to your shell startup you can enable lazy loading by exporting the `NVM_LAZY_LOAD` environment variable and setting it to `true`. It must be set before `zsh-nvm` is loaded. + +Lazy loading is around 70 times faster to load, however the first time you run `nvm`, `npm`, `node` or a global module you'll get a slight delay while `nvm` loads first. You'll only get this delay once per session. For example, if you are using antigen, you would put the following in your `.zshrc`: