mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
Update usage in readme for new features
This commit is contained in:
parent
86b7f6c1a9
commit
7a3747f0c7
26
README.md
26
README.md
@ -12,15 +12,31 @@ Although this is written as a zsh plugin, it also works with bash if you follow
|
|||||||
|
|
||||||
Once the plugin's installed `nvm` will be available. You'll probably want to load this as one of your first plugins so `node`/`npm` is available for any other plugins that may require them.
|
Once the plugin's installed `nvm` will be available. You'll probably want to load this as one of your first plugins so `node`/`npm` is available for any other plugins that may require them.
|
||||||
|
|
||||||
If you want to update `nvm`:
|
`zsh-nvm` also wraps `nvm` in some additional functionality.
|
||||||
|
|
||||||
|
### Upgrade
|
||||||
|
|
||||||
|
If you want to upgrade to the latest release of `nvm`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
% nvm upgrade
|
% nvm upgrade
|
||||||
Installed version is v0.31.1
|
Installed version is v0.31.0
|
||||||
Checking latest version of nvm...
|
Checking latest version of nvm...
|
||||||
Updating to v0.31.2...
|
Updating to v0.31.3...
|
||||||
Previous HEAD position was ec2f450... v0.31.1
|
Previous HEAD position was 2176894... v0.31.0
|
||||||
HEAD is now at 9f5322e... v0.31.2
|
HEAD is now at 56417f8... v0.31.3
|
||||||
|
```
|
||||||
|
|
||||||
|
### Revert
|
||||||
|
|
||||||
|
If an upgrade breaks something don't worry, reverting back to the previously installed version is simple:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
% nvm revert
|
||||||
|
Installed version is v0.31.3
|
||||||
|
Reverting to v0.31.0...
|
||||||
|
Previous HEAD position was 56417f8... v0.31.3
|
||||||
|
HEAD is now at 2176894... v0.31.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
Loading…
Reference in New Issue
Block a user