Browse Source

feat(npm): add `npmrd` alias (#11627)

Nathanial Spearing 2 years ago
parent
commit
91c7ed45a3
2 changed files with 4 additions and 0 deletions
  1. 1 0
      plugins/npm/README.md
  2. 3 0
      plugins/npm/npm.plugin.zsh

+ 1 - 0
plugins/npm/README.md

@@ -29,6 +29,7 @@ plugins=(... npm)
 | `npmI`  | `npm init`                   | Run npm init                                                    |
 | `npmi`  | `npm info`                   | Run npm info                                                    |
 | `npmSe` | `npm search`                 | Run npm search                                                  |
+| `npmrd` | `npm run dev`                | Run npm run dev                                                 |
 
 ## `npm install` / `npm uninstall` toggle
 

+ 3 - 0
plugins/npm/npm.plugin.zsh

@@ -70,6 +70,9 @@ alias npmi="npm info"
 # Run npm search
 alias npmSe="npm search"
 
+# Run npm run dev
+alias npmrd="npm run dev"
+
 npm_toggle_install_uninstall() {
   # Look up to the previous 2 history commands
   local line