npm.plugin.zsh 640 B

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