mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
d5b660fccf
Signed-off-by: Audrius Kažukauskas <audrius@neutrino.lt>
12 lines
393 B
Bash
12 lines
393 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 -o default -F _npm_completion npm
|