From 9735ad7b5ce4cf39567d025d2136d05f0fa3f3ad Mon Sep 17 00:00:00 2001 From: Brandon Waskiewicz Date: Mon, 29 Jul 2019 14:07:34 -0400 Subject: [PATCH] Ensure node paths are appended to existing $PATH --- plugins/available/node.plugin.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/available/node.plugin.bash b/plugins/available/node.plugin.bash index f0467cef..b012742d 100644 --- a/plugins/available/node.plugin.bash +++ b/plugins/available/node.plugin.bash @@ -1,7 +1,7 @@ cite about-plugin 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 -[[ `which npm` ]] && pathmunge $(npm config get prefix)/bin +[[ `which npm` ]] && pathmunge "$(npm config get prefix)/bin" "after"