Skip to content

Commit 5ed2682

Browse files
docs: correct incorrect desc and usage in npm-completion.md
Fixes npm#4620
1 parent ab9ddc0 commit 5ed2682

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/lib/content/commands/npm-completion.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@ description: Tab Completion for npm
1010

1111
### Description
1212

13-
Enables tab-completion in all npm commands.
13+
Generates a shell script to enable tab-completion for all npm commands.
1414

15-
The synopsis above
16-
loads the completions into your current shell. Adding it to
15+
To load the completions into your current shell:
16+
17+
```bash
18+
source <(npm completion)
19+
```
20+
21+
Adding its output to
1722
your ~/.bashrc or ~/.zshrc will make the completions available
1823
everywhere:
1924

0 commit comments

Comments
 (0)