Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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