21 lines
450 B
Markdown
21 lines
450 B
Markdown
|
|
# npm completion
|
||
|
|
|
||
|
|
> Enable or set up tab-completion for npm commands.
|
||
|
|
> More information: <https://docs.npmjs.com/cli/npm-completion>.
|
||
|
|
|
||
|
|
- Enable tab-completion for the current shell session:
|
||
|
|
|
||
|
|
`npm completion`
|
||
|
|
|
||
|
|
- Add completion to your shell profile (Bash):
|
||
|
|
|
||
|
|
`npm completion >> ~/.bashrc`
|
||
|
|
|
||
|
|
- Add completion to your shell profile (Zsh):
|
||
|
|
|
||
|
|
`npm completion >> ~/.zshrc`
|
||
|
|
|
||
|
|
- Write completions script to a specific file:
|
||
|
|
|
||
|
|
`npm completion > {{path/to/file}}`
|