mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
77766d1785
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
12 lines
382 B
Bash
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
|