Add warning if npm is not in $PATH

This commit is contained in:
Marc Cornellà 2014-06-28 22:13:01 +02:00
commit 8870858202

View file

@ -1 +1,4 @@
eval "$(npm completion 2>/dev/null)"
# If NPM is not found don't silently fail.
(( $+commands[npm] )) && eval "$(npm completion 2>/dev/null)" || {
echo "oh-my-zsh (npm plugin): npm not found. Make sure you have it in your \$PATH"
}