Skip to content

Commit

Permalink
docs: correct incorrect desc and usage in npm-completion.md
Browse files Browse the repository at this point in the history
Fixes npm#4620
  • Loading branch information
vassudanagunta authored Dec 22, 2024
1 parent ab9ddc0 commit 5ed2682
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/lib/content/commands/npm-completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ description: Tab Completion for npm

### Description

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

The synopsis above
loads the completions into your current shell. Adding it to
To load the completions into your current shell:

```bash
source <(npm completion)
```

Adding its output to
your ~/.bashrc or ~/.zshrc will make the completions available
everywhere:

Expand Down

0 comments on commit 5ed2682

Please sign in to comment.