Solve the issue with not updating the .*rc file when not installed with BASH

This commit is contained in:
rcmainak 2021-05-17 19:27:22 +05:30
parent 0152bb1204
commit 90736ed748

View File

@ -66,10 +66,10 @@ nvm is a version manager for [node.js](https://nodejs.org/en/), designed to be i
To **install** or **update** nvm, you should run the [install script][2]. To do that, you may either download and run the script manually, or use the following cURL or Wget command:
```sh
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | $(which $SHELL
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | $(which $SHELL)
```
```sh
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | $(which $SHELL
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | $(which $SHELL)
```
Running either of the above commands downloads a script and runs it. The script clones the nvm repository to `~/.nvm`, and attempts to add the source lines from the snippet below to the correct profile file (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).