summaryrefslogtreecommitdiff
path: root/.config/bash/npm-path.sh
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2014-11-21 12:45:15 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2014-11-21 12:45:15 +0100
commit28c6a17bf46ef03a5712919ecffb461027cc91a6 (patch)
tree7e65461fc08562cd0585ddc6398719820b101a44 /.config/bash/npm-path.sh
parent988cab73c68c9b8b20068de14943f35c726e956e (diff)
downloaddotfiles-28c6a17bf46ef03a5712919ecffb461027cc91a6.tar.gz
dotfiles-28c6a17bf46ef03a5712919ecffb461027cc91a6.tar.bz2
dotfiles-28c6a17bf46ef03a5712919ecffb461027cc91a6.zip
Add npm configuration for local (global) installations
So that "npm install -g" installs to ~/.local/
Diffstat (limited to '.config/bash/npm-path.sh')
-rw-r--r--.config/bash/npm-path.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/bash/npm-path.sh b/.config/bash/npm-path.sh
new file mode 100644
index 0000000..d3d211c
--- /dev/null
+++ b/.config/bash/npm-path.sh
@@ -0,0 +1,4 @@
+export NPM_PACKAGES="${HOME}/.local/npm-packages"
+export PATH="${PATH}:${NPM_PACKAGES}/bin"
+export MANPATH="${MANPATH}:${NPM_PACKAGES}/share/man"
+export NODE_PATH="${NPM_PACKAGES}/lib/node_modules:$NODE_PATH"