mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-06 03:10:35 +01:00
Add warning if npm is not in $PATH
This commit is contained in:
parent
7f07facf41
commit
8870858202
1 changed files with 4 additions and 1 deletions
|
|
@ -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"
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue