Skip to content
Myr

[readme] fix `--no-use` example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jérémy GAU · committed by Jordan Harband · parent 14507f8 · Browse files · 1 file+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:README.md+6 added-1 removed
119 unmodified lines
120#### Additional Notes121122- If the environment variable `$XDG_CONFIG_HOME` is present, it will place the `nvm` files there.</sub>123124- You can add `--no-use` to the end of the above script (...`nvm.sh --no-use`) to postpone using `nvm` until you manually [`use`](#usage) it.124- You can add `--no-use` to the end of the above script to postpone using `nvm` until you manually [`use`](#usage) it:125126```sh127export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"128[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use # This loads nvm, without auto-using the default version129```130131- You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables.132Eg: `curl ... | NVM_DIR="path/to/nvm"`. Ensure that the `NVM_DIR` does not contain a trailing slash.133134- The installer can use `git`, `curl`, or `wget` to download `nvm`, whichever is available.
983 unmodified lines