diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index c3eb91d31..660561f75 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -1 +1,7 @@ +# 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)" diff --git a/plugins/python/python.plugin.zsh b/plugins/python/python.plugin.zsh index 852c8b919..f4399f46b 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"'