mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
fix run twice
This commit is contained in:
parent
9d81d049d9
commit
96f7c0762f
1 changed files with 10 additions and 4 deletions
|
|
@ -2,11 +2,17 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
COMPLETION="${ZSH_CACHE_DIR}/npm_completion"
|
COMPLETION="${ZSH_CACHE_DIR}/npm_completion"
|
||||||
[[ ! -f $COMPLETION ]] && npm completion 2>/dev/null >! $COMPLETION
|
|
||||||
source $COMPLETION
|
if [[ ! -f $COMPLETION ]]; then
|
||||||
npm completion 2>/dev/null >! $COMPLETION &
|
npm completion 2>/dev/null >! $COMPLETION
|
||||||
|
source $COMPLETION
|
||||||
|
else
|
||||||
|
source $COMPLETION
|
||||||
|
npm completion 2>/dev/null >! $COMPLETION &
|
||||||
|
fi
|
||||||
|
|
||||||
unset COMPLETION
|
unset COMPLETION
|
||||||
|
|
||||||
# Install dependencies globally
|
# Install dependencies globally
|
||||||
alias npmg="npm i -g "
|
alias npmg="npm i -g "
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue