4298e89b4b0a4090e2ff5a1e2014d5a6d04fc25c

Author
Paul Robert Lloyd <paulrobertlloyd@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

docs(nvm): clarify how to enable settings (#9542)

It wasn’t clear where I should set the `NVM_AUTOLOAD` variable. The clue was to be found in [the docs for another plugin](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/fzf). It seems setting values need to come before Oh My Zsh is sourced.

Updated read me to reflect this, and the fact that one of the settings mentioned is specific to nvm, not this plugin.

Diff

 1diff --git a/plugins/nvm/README.md b/plugins/nvm/README.md
 2index 749a43403e3db9a16e8a8b72bf6ac392fb360866..7006130851167a2c602f242537b3d8641235179a 100644
 3--- a/plugins/nvm/README.md
 4+++ b/plugins/nvm/README.md
 5@@ -11,9 +11,11 @@ plugins=(... nvm)
 6 
 7 ## Settings
 8 
 9-- **`NVM_DIR`**: if you have installed nvm in a directory other than `$HOME/.nvm`, set and export `NVM_DIR`
10-  to be the directory where you installed nvm.
11-  
12+If you installed nvm in a directory other than `$HOME/.nvm`, set and export `NVM_DIR` to be the directory
13+where you installed nvm.
14+
15+These settings should go in your zshrc file, before Oh My Zsh is sourced:
16+
17 - **`NVM_HOMEBREW`**: if you installed nvm via Homebrew, in a directory other than `/usr/local/opt/nvm`, you
18   can set `NVM_HOMEBREW` to be the directory where you installed it.
19