milis/talimatname/genel/n/node/node.npm.sh

14 lines
383 B
Bash
Raw Normal View History

2018-06-09 00:06:58 +02:00
# bash completion for npm
_npm_completion () {
local si="$IFS"
IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \
COMP_LINE="$COMP_LINE" \
COMP_POINT="$COMP_POINT" \
npm completion -- "${COMP_WORDS[@]}" \
2>/dev/null)) || return $?
IFS="$si"
}
complete -F _npm_completion npm