slackbuilds_ponce/network/node/npm.sh
Audrius Kažukauskas 77766d1785 network/node: Updated for version 0.6.6.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2011-12-17 23:38:47 -06:00

12 lines
382 B
Bash

# 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