bash: use addpath to only add paths once

This commit is contained in:
2019-12-12 15:06:48 +00:00
parent 429102fd1e
commit 749d22c17e
3 changed files with 22 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
# Set up NPM
NPM_PACKAGES="$HOME/.npm-packages"
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
PATH=$PATH:$NPM_PACKAGES/bin
MANPATH="$MANPATH:$NPM_PACKAGES/share/man"
addpath $NPM_PACKAGES/bin