Browse Source

Improve explanation of NVM_LAZY_LOAD_EXTRA_COMMANDS option

pull/67/head
Joeri de Gooijer 5 years ago
parent
commit
4324516c9b
  1. 3
      README.md

3
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
```

Loading…
Cancel
Save