d7e7ef6f94564becf64e32cd1d2ef78d1a892b8a

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #4427 from xavhan/patch-1

Add alias for npm global install

Diff

 1diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh
 2index 595105d3c1c2355a23c571f4d7ae4e4103220d9b..3f6fe0fb345b76858d47f0bdf8a6450355b785dc 100644
 3--- a/plugins/npm/npm.plugin.zsh
 4+++ b/plugins/npm/npm.plugin.zsh
 5@@ -1,8 +1,9 @@
 6 eval "$(npm completion 2>/dev/null)"
 7 
 8+# Install dependencies globally
 9+alias npmg="npm i -g "
10 
11 # npm package names are lowercase
12-# - https://twitter.com/substack/status/23122603153150361
13 # Thus, we've used camelCase for the following aliases:
14 
15 # Install and save to dependencies in your package.json
16@@ -12,6 +13,7 @@ alias npmS="npm i -S "
17 # Install and save to dev-dependencies in your package.json
18 # npmd is used by https://github.com/dominictarr/npmd
19 alias npmD="npm i -D "
20+
21 # Execute command from node_modules folder based on current directory
22 # i.e npmE gulp
23 alias npmE='PATH="$(npm bin)":"$PATH"'