浏览代码

Merge pull request #4209 from ah450/npm-exec

Adds npmE alias
Robby Russell 9 年之前
父节点
当前提交
1e49dfcd15
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      plugins/npm/npm.plugin.zsh

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

@@ -12,3 +12,6 @@ alias npmS="npm i -S "
 # Install and save to dev-dependencies in your package.json
 # npmd is used by https://github.com/dominictarr/npmd
 alias npmD="npm i -D "
+# Execute command from node_modules folder based on current directory
+# i.e npmE gulp
+alias npmE='PATH="$(npm bin)":"$PATH"'