1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-12 08:50:08 +00:00

npm: quiet error output of npm completion

This commit is contained in:
Marc Cornellà 2016-09-10 00:21:11 +02:00
parent 27fff27253
commit 2a44527ac3

View file

@ -2,7 +2,8 @@
__NPM_COMPLETION_FILE="${ZSH_CACHE_DIR}/npm_completion" __NPM_COMPLETION_FILE="${ZSH_CACHE_DIR}/npm_completion"
if [[ ! -f $__NPM_COMPLETION_FILE ]]; then if [[ ! -f $__NPM_COMPLETION_FILE ]]; then
npm completion >! $__NPM_COMPLETION_FILE || rm -f $__NPM_COMPLETION_FILE npm completion >! $__NPM_COMPLETION_FILE 2>/dev/null
[[ $? -ne 0 ]] && rm -f $__NPM_COMPLETION_FILE
fi fi
source $__NPM_COMPLETION_FILE source $__NPM_COMPLETION_FILE