npm: only source npm completion cache if file exists

master
Marc Cornellà 10 years ago
parent 2a44527ac3
commit 76924b7f5f
  1. 2
      plugins/npm/npm.plugin.zsh

@ -6,7 +6,7 @@
[[ $? -ne 0 ]] && rm -f $__NPM_COMPLETION_FILE [[ $? -ne 0 ]] && rm -f $__NPM_COMPLETION_FILE
fi fi
source $__NPM_COMPLETION_FILE [[ -f $__NPM_COMPLETION_FILE ]] && source $__NPM_COMPLETION_FILE
} }
# Install dependencies globally # Install dependencies globally

Loading…
Cancel
Save