Merge pull request #1404 from brandonw/fix/node-plugin-path

Ensure node paths are appended to existing $PATH
pull/1413/head
Nils Winkler 2019-07-30 08:53:52 +02:00 committed by GitHub
commit ad00b74f4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
cite about-plugin cite about-plugin
about-plugin 'Node.js helper functions' about-plugin 'Node.js helper functions'
pathmunge ./node_modules/.bin pathmunge "./node_modules/.bin" "after"
# Make sure the global npm prefix is on the path # Make sure the global npm prefix is on the path
[[ `which npm 2>/dev/null` ]] && pathmunge $(npm config get prefix)/bin [[ `which npm 2>/dev/null` ]] && pathmunge "$(npm config get prefix)/bin" "after"