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: 2f80be395c05839bf5424e91f09976d5fa3131a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
npm-completion(1) -- Tab Completion for npm
===========================================

## SYNOPSIS

    npm completion >> ~/.bashrc
    npm completion >> ~/.zshrc

## DESCRIPTION

Sets up a function that enables tab-completion in all npm commands.

You may of course also pipe the relevant script to a file such as
`/usr/local/etc/bash_completion.d/npm` if you have a system that will
read that file for you.

When `COMP_CWORD`, `COMP_LINE`, and `COMP_POINT` are defined in the
environment, `npm completion` acts in "plumbing mode", and outputs
completions based on the arguments.