.local/share/bash-completion/completions/npm
changeset 1037 b386e087b97f
parent 1036 5b1ba85724fd
equal deleted inserted replaced
1036:5b1ba85724fd 1037:b386e087b97f
     1 eval "$(npm completion)"
     1 if [[ $OSTYPE = cygwin ]]; then
       
     2   # eval "$(MSYSTEM=MINGW64 npm completion | tr -d $'\r')"
       
     3   _npm_completion () {
       
     4     IFS=$'\n' COMPREPLY=( $(MSYSTEM=MINGW64 COMP_CWORD="$COMP_CWORD" COMP_LINE="$COMP_LINE" COMP_POINT="$COMP_POINT" npm completion -- "${COMP_WORDS[@]}" 2>/dev/null) )
       
     5   }
       
     6   complete -o default -F _npm_completion npm
       
     7 else
       
     8   eval "$(npm completion)"
       
     9 fi