diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index 38e699ea0..f3920e47c 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -1,3 +1,9 @@ +# NodeJS installed by Homebrew +if [[ -x `which brew` && -d `brew --prefix`/lib/node ]] ; then + export NODE_PATH="$(brew --prefix)/share/npm/lib/node_modules" + export PATH="$(brew --prefix)/share/npm/bin:$PATH" +fi + eval "$(npm completion 2>/dev/null)" # Install dependencies globally diff --git a/plugins/python/python.plugin.zsh b/plugins/python/python.plugin.zsh index a10c06fd3..8a29384c3 100644 --- a/plugins/python/python.plugin.zsh +++ b/plugins/python/python.plugin.zsh @@ -1,3 +1,8 @@ +# Installed via Homebrew +if [[ -x `which brew` && -d `brew --prefix`/share/python ]] ; then + export PATH="$(brew --prefix)/share/python:$PATH" +fi + # Find python file alias pyfind='find . -name "*.py"'