Add silently python and npm to /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/usr/lib/qt4/bin on brewed systems

This commit is contained in:
MAD 2013-03-10 13:46:50 +01:00
commit 815f82eda9
2 changed files with 11 additions and 0 deletions

View file

@ -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)"

View file

@ -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"'