diff options
author | Paul Robert Lloyd <paulrobertlloyd@users.noreply.github.com> | 2021-01-02 13:04:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 14:04:34 +0100 |
commit | 4298e89b4b0a4090e2ff5a1e2014d5a6d04fc25c (patch) | |
tree | fc7dff521ebceb3336ab41642a21f865e2796627 | |
parent | 88ffc2f6666fe1196ae57cc75b559b08e08cb616 (diff) | |
download | zsh-4298e89b4b0a4090e2ff5a1e2014d5a6d04fc25c.tar.gz zsh-4298e89b4b0a4090e2ff5a1e2014d5a6d04fc25c.tar.bz2 zsh-4298e89b4b0a4090e2ff5a1e2014d5a6d04fc25c.zip |
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.
-rw-r--r-- | plugins/nvm/README.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/nvm/README.md b/plugins/nvm/README.md index 749a43403..700613085 100644 --- a/plugins/nvm/README.md +++ b/plugins/nvm/README.md @@ -11,9 +11,11 @@ plugins=(... nvm) ## Settings -- **`NVM_DIR`**: if you have installed nvm in a directory other than `$HOME/.nvm`, set and export `NVM_DIR` - to be the directory where you installed nvm. - +If you installed nvm in a directory other than `$HOME/.nvm`, set and export `NVM_DIR` to be the directory +where you installed nvm. + +These settings should go in your zshrc file, before Oh My Zsh is sourced: + - **`NVM_HOMEBREW`**: if you installed nvm via Homebrew, in a directory other than `/usr/local/opt/nvm`, you can set `NVM_HOMEBREW` to be the directory where you installed it. |