summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Rajtslegr <petr.rajtslegr@gmail.com>2021-04-25 19:07:25 +0200
committerGitHub <noreply@github.com>2021-04-25 19:07:25 +0200
commit32532c149a90eb25710f94d207546501e83c161b (patch)
tree14edaadf196ca7857f478711aa3dc2d78528075c
parent1cc15ca3c23ba1a2b5236432bc62eb652c98972d (diff)
downloadzsh-32532c149a90eb25710f94d207546501e83c161b.tar.gz
zsh-32532c149a90eb25710f94d207546501e83c161b.tar.bz2
zsh-32532c149a90eb25710f94d207546501e83c161b.zip
feat(npm): add alias for `npm update` (#9442)
-rw-r--r--plugins/npm/README.md1
-rw-r--r--plugins/npm/npm.plugin.zsh3
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/npm/README.md b/plugins/npm/README.md
index bc627e56f..d6bada38b 100644
--- a/plugins/npm/README.md
+++ b/plugins/npm/README.md
@@ -18,6 +18,7 @@ plugins=(... npm)
| `npmF` | `npm i -f` | Force install from remote registries ignoring local cache |
| `npmE` | `PATH="$(npm bin)":"$PATH"` | Run command from node_modules folder based on current directory |
| `npmO` | `npm outdated` | Check which npm modules are outdated |
+| `npmU` | `npm update` | Update all the packages listed to the latest version |
| `npmV` | `npm -v` | Check package versions |
| `npmL` | `npm list` | List installed packages |
| `npmL0` | `npm ls --depth=0` | List top-level installed packages |
diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh
index 93de9cba3..23f627ccd 100644
--- a/plugins/npm/npm.plugin.zsh
+++ b/plugins/npm/npm.plugin.zsh
@@ -37,6 +37,9 @@ alias npmE='PATH="$(npm bin)":"$PATH"'
# Check which npm modules are outdated
alias npmO="npm outdated"
+# Update all the packages listed to the latest version
+alias npmU="npm update"
+
# Check package versions
alias npmV="npm -v"