4d8d7bed50516aab86079aa5386ee6662bde5ae0

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

Message

docs(nvm): clarify how to get Homebrew directory (#10393)

Diff

 1diff --git a/plugins/nvm/README.md b/plugins/nvm/README.md
 2index 0c2bbf9f04a4a8847205206b96fe755cf5057feb..a8bc34ae7970f6b7af4212f0deb4d4a5a676e4c5 100644
 3--- a/plugins/nvm/README.md
 4+++ b/plugins/nvm/README.md
 5@@ -17,7 +17,9 @@ where you installed nvm.
 6 These settings should go in your zshrc file, before Oh My Zsh is sourced:
 7 
 8 - **`NVM_HOMEBREW`**: if you installed nvm via Homebrew, in a directory other than `/usr/local/opt/nvm`, you
 9-  can set `NVM_HOMEBREW` to be the directory where you installed it.
10+  can set `NVM_HOMEBREW` to be the directory where you installed it. For example, on Apple Silicon-based Macs,
11+  [Homebrew is installed in `/opt/homebrew`](https://docs.brew.sh/Installation). To get the directory where
12+  nvm has been installed, regardless of chip architecture, use `NVM_HOMEBREW=$(brew --prefix nvm)`.
13 
14 - **`NVM_LAZY`**: if you want the plugin to defer the load of nvm to speed-up the start of your zsh session,
15   set `NVM_LAZY` to `1`. This will use the `--no-use` parameter when loading nvm, and will create a function