Commit 7c1ca0e4 authored by Philipp Wahala's avatar Philipp Wahala Committed by Marc Cornellà
Browse files

Create and cache npm completion on first run


Signed-off-by: default avatarMarc Cornellà <marc.cornella@live.com>
parent 4b9772ff
eval "$(npm completion 2>/dev/null)"
__NPM_COMPLETION_FILE="${ZSH_CACHE_DIR}/npm_completion"
if [[ ! -f $__NPM_COMPLETION_FILE ]]; then
npm completion >! $__NPM_COMPLETION_FILE || rm -f $__NPM_COMPLETION_FILE
fi
source $__NPM_COMPLETION_FILE
# Install dependencies globally
alias npmg="npm i -g "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment