diff options
author | Alexandre Nicastro <kryndex@gmail.com> | 2018-07-01 18:21:20 -0300 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-07-01 23:21:20 +0200 |
commit | af085542bdc0e835093ed2b86f90251bc1f3d719 (patch) | |
tree | 7b348cc8caa3d660ff8b10ec7d632933ac261a6e /plugins | |
parent | 5c0911c184b012797ef4d0ed2a79d67b6b0976e3 (diff) | |
download | zsh-af085542bdc0e835093ed2b86f90251bc1f3d719.tar.gz zsh-af085542bdc0e835093ed2b86f90251bc1f3d719.tar.bz2 zsh-af085542bdc0e835093ed2b86f90251bc1f3d719.zip |
Stop error "permission denied: /npm_completion" (#6340)
Fixes #5874
Related:
https://github.com/lukechilds/zsh-nvm/issues/23
https://github.com/zsh-users/antigen/issues/586
Diffstat (limited to 'plugins')
-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 43af35ddb..f62174a4f 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -1,5 +1,5 @@ (( $+commands[npm] )) && { - __NPM_COMPLETION_FILE="${ZSH_CACHE_DIR}/npm_completion" + __NPM_COMPLETION_FILE="${ZSH_CACHE_DIR:-$ZSH/cache}/npm_completion" if [[ ! -f $__NPM_COMPLETION_FILE ]]; then npm completion >! $__NPM_COMPLETION_FILE 2>/dev/null |