Skip to content

Commit 8643f4f

Browse files
ved1betaSadeeedManagor
authored
npm-completion: add page (#18439)
Co-authored-by: Sadeed <[email protected]> Co-authored-by: Managor <[email protected]>
1 parent 5e3e7cb commit 8643f4f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pages/common/npm-completion.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# npm completion
2+
3+
> Enable or set up tab-completion for npm commands.
4+
> More information: <https://docs.npmjs.com/cli/commands/npm-completion>.
5+
6+
- Enable tab-completion for the current shell session:
7+
8+
`npm completion`
9+
10+
- Add completion to your shell profile (Bash):
11+
12+
`npm completion >> ~/.bashrc`
13+
14+
- Add completion to your shell profile (Zsh):
15+
16+
`npm completion >> ~/.zshrc`
17+
18+
- Write completions script to a specific file:
19+
20+
`npm completion > {{path/to/file}}`

0 commit comments

Comments
 (0)