32532c149a90eb25710f94d207546501e83c161b
- Author
- Petr Rajtslegr <petr.rajtslegr@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(npm): add alias for `npm update` (#9442)
Diff
1diff --git a/plugins/npm/README.md b/plugins/npm/README.md
2index bc627e56f7ab5763b998c29b7381d0bd46ab5d8f..d6bada38b552868bedd842a72c22da5ef5577af0 100644
3--- a/plugins/npm/README.md
4+++ b/plugins/npm/README.md
5@@ -18,6 +18,7 @@ plugins=(... npm)
6 | `npmF` | `npm i -f` | Force install from remote registries ignoring local cache |
7 | `npmE` | `PATH="$(npm bin)":"$PATH"` | Run command from node_modules folder based on current directory |
8 | `npmO` | `npm outdated` | Check which npm modules are outdated |
9+| `npmU` | `npm update` | Update all the packages listed to the latest version |
10 | `npmV` | `npm -v` | Check package versions |
11 | `npmL` | `npm list` | List installed packages |
12 | `npmL0` | `npm ls --depth=0` | List top-level installed packages |
13diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh
14index 93de9cba3e1cac8421efb8192f3e32fa10590734..23f627ccd9e8f962161317f677ffe96e8269053c 100644
15--- a/plugins/npm/npm.plugin.zsh
16+++ b/plugins/npm/npm.plugin.zsh
17@@ -37,6 +37,9 @@ alias npmE='PATH="$(npm bin)":"$PATH"'
18 # Check which npm modules are outdated
19 alias npmO="npm outdated"
20
21+# Update all the packages listed to the latest version
22+alias npmU="npm update"
23+
24 # Check package versions
25 alias npmV="npm -v"
26