76924b7f5fbcfc808b00c76df13dd176a46cda6c
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
npm: only source npm completion cache if file exists
Diff
1diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh
2index fd2703ce116627d117f0943f82acdcdac9814e99..b5166b5179613b9de117d7acd12f32f3f3193923 100644
3--- a/plugins/npm/npm.plugin.zsh
4+++ b/plugins/npm/npm.plugin.zsh
5@@ -6,7 +6,7 @@
6 [[ $? -ne 0 ]] && rm -f $__NPM_COMPLETION_FILE
7 fi
8
9- source $__NPM_COMPLETION_FILE
10+ [[ -f $__NPM_COMPLETION_FILE ]] && source $__NPM_COMPLETION_FILE
11 }
12
13 # Install dependencies globally