[pathmunge] fix duplicates in PATH variable for nginx and node plugins

This commit is contained in:
Ivan Povalyukhin
2015-05-30 00:27:05 -07:00
parent cf3728c5aa
commit 575551e42b
2 changed files with 3 additions and 8 deletions

View File

@@ -1,9 +1,7 @@
cite about-plugin
about-plugin 'Node.js helper functions'
export PATH=./node_modules/.bin:$PATH
pathmunge ./node_modules/.bin
# Make sure the global npm prefix is on the path
[[ `which npm` ]] && export PATH=$(npm config get prefix)/bin:$PATH
[[ `which npm` ]] && pathmunge $(npm config get prefix)/bin