npm completion
node --completion-bash
To setup the completions interactively in Bash: eval "$(node --completion-bash)" eval "$(npm completion)"
To setup the completions interactively in Bash:
eval "$(node --completion-bash)" eval "$(npm completion)"
npm completion also supports zsh.
Noelle Leigh referenced this ticket in commit 2eb2076.