From 4324516c9b14a16cf1b4bfce8651c394b704bb1d Mon Sep 17 00:00:00 2001 From: Joeri de Gooijer Date: Tue, 16 Jun 2020 08:33:25 +0200 Subject: [PATCH] Improve explanation of NVM_LAZY_LOAD_EXTRA_COMMANDS option --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eaac982..42ef45e 100644 --- a/README.md +++ b/README.md @@ -111,9 +111,10 @@ Performance comparison: #### Extra commands to trigger lazy loading By default lazy loading nvm is triggered by running the `nvm`, `node`, `npm` commands or any installed npm global binaries. If you want to trigger the lazy loading via extra arbitrary commands you can define `NVM_LAZY_LOAD_EXTRA_COMMANDS` and set it to an array of commands as strings. +This can be usefull if programs are not in the above list of binaries but do depend on the availability of `node`, e.g. a vim plugin. ```shell -export NVM_LAZY_LOAD_EXTRA_COMMANDS=('vim', 'ls') +export NVM_LAZY_LOAD_EXTRA_COMMANDS=('vim') vim --version #node is now loaded ```