Skip to content

Commit

Permalink
fix(npm): fix npm completion order issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Deavon M. McCaffery committed Oct 11, 2017
1 parent 35844f1 commit d928464
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/scripts/set-nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ __prompt-set-nvm()
fi

export NVM_DIR="$HOME/.nvm"

source "$nvm_path/nvm.sh"
fi

nvm use --lts
eval "$(npm completion)"
}
4 changes: 0 additions & 4 deletions src/scripts/set-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ __prompt-set-prompt() {
eval "$(grunt --completion=bash)" 1>/dev/null 2>&1;
fi

if type npm 1>/dev/null 2>&1; then
eval "$(npm completion)" 1>/dev/null 2>&1;
fi

if type kubectl 1>/dev/null 2>&1; then
eval "$(kubectl completion bash)" 1>/dev/null 2>&1;
fi
Expand Down

0 comments on commit d928464

Please sign in to comment.