mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
npm
This commit is contained in:
parent
38da9b9bb4
commit
4c66eedf61
1 changed files with 9 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
<<<<<<< 38da9b9bb479d3abae6558ba738ec63403ffa2b0
|
||||||
(( $+commands[npm] )) && {
|
(( $+commands[npm] )) && {
|
||||||
__NPM_COMPLETION_FILE="${ZSH_CACHE_DIR}/npm_completion"
|
__NPM_COMPLETION_FILE="${ZSH_CACHE_DIR}/npm_completion"
|
||||||
|
|
||||||
|
|
@ -10,6 +11,14 @@
|
||||||
|
|
||||||
unset __NPM_COMPLETION_FILE
|
unset __NPM_COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
=======
|
||||||
|
completion=~/.npm_completion
|
||||||
|
if [ ! -f $completion ]; then
|
||||||
|
npm completion 2>/dev/null > $completion
|
||||||
|
fi
|
||||||
|
source $completion
|
||||||
|
(rm $completion; npm completion 2>/dev/null > $completion &)
|
||||||
|
>>>>>>> prevent error on first launch
|
||||||
|
|
||||||
# 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