diff options
author | Marc Cornellà <marc.cornella@live.com> | 2016-09-10 00:21:38 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-09-10 00:23:50 +0200 |
commit | 76924b7f5fbcfc808b00c76df13dd176a46cda6c (patch) | |
tree | 8c95b2d7db18013aa7a7195a30f5a38e3dd3cb6b /plugins/npm | |
parent | 2a44527ac3eea1e87b518f69956f3a2bde669dac (diff) | |
download | zsh-76924b7f5fbcfc808b00c76df13dd176a46cda6c.tar.gz zsh-76924b7f5fbcfc808b00c76df13dd176a46cda6c.tar.bz2 zsh-76924b7f5fbcfc808b00c76df13dd176a46cda6c.zip |
npm: only source npm completion cache if file exists
Diffstat (limited to 'plugins/npm')
-rw-r--r-- | plugins/npm/npm.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index fd2703ce1..b5166b517 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -6,7 +6,7 @@ [[ $? -ne 0 ]] && rm -f $__NPM_COMPLETION_FILE fi - source $__NPM_COMPLETION_FILE + [[ -f $__NPM_COMPLETION_FILE ]] && source $__NPM_COMPLETION_FILE } # Install dependencies globally |