Welcome to mirror list, hosted at ThFree Co, Russian Federation.

completion.md « doc - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 454468b4ce7fa08d1bd88ef2dc1bd9a8a0571ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
npm-completion(1) -- Tab Completion for npm
===========================================

## DESCRIPTION

You should set up tab completion for npm if you haven't already.
There are a few ways to do this:

1. Add `. /path/to/npm-completion.sh` to your ~/.bashrc file. OR:
2. Create a symlink like this if you have automatic bash completion set up:
  `ln - /path/to/npm-completion.sh /etc/bash-completion.d/npm`
  or, perhaps:
  `ln - /path/to/npm-completion.sh /usr/local/etc/bash-completion.d/npm`

If you're using a non-bash shell (like zsh or ksh) then this might not work.

To get the path to the npm-completion.sh file, use `npm explore npm pwd`.

It's a very new feature, and it would be great to get feedback on it.
Hopefully, I'll be able to work out a way to install the completion script
automatically.  If you have any ideas about how that should work, then please
share them.