npm.plugin.zsh 581 B

12345678910111213141516171819
  1. eval "$(npm completion 2>/dev/null)"
  2. # Install dependencies globally
  3. alias npmg="npm i -g "
  4. # npm package names are lowercase
  5. # Thus, we've used camelCase for the following aliases:
  6. # Install and save to dependencies in your package.json
  7. # npms is used by https://www.npmjs.com/package/npms
  8. alias npmS="npm i -S "
  9. # Install and save to dev-dependencies in your package.json
  10. # npmd is used by https://github.com/dominictarr/npmd
  11. alias npmD="npm i -D "
  12. # Execute command from node_modules folder based on current directory
  13. # i.e npmE gulp
  14. alias npmE='PATH="$(npm bin)":"$PATH"'