This commit is contained in:
Will Boyce 2017-04-23 14:44:21 +00:00 committed by GitHub
commit 6b261a357d

View file

@ -0,0 +1,11 @@
function _npm_brew_paths() {
local old_eglob=$(setopt | grep '^extendedglob$')
[ -z ${old_eglob} ] && setopt extendedglob
echo /usr/local/lib/node_modules/^npm/bin
[ -z ${old_eglob} ] && setopt noextendedglob
}
# add /usr/local/lib/node_modules/^npm/bin to PATH
for p in `_npm_brew_paths`;
[ -d $p ] && path=($p $path)
unset _npm_brew_paths