mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 22:53:45 +00:00

PR-URL: https://github.com/nodejs/node/pull/4958 Reviewed-By: Myles Borins <mborins@us.ibm.com> Reviewed-By: Kat Marchán <kzm@sykosomatic.org> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
45 lines
945 B
Groff
45 lines
945 B
Groff
.TH "NPM\-COMPLETION" "1" "January 2016" "" ""
|
|
.SH "NAME"
|
|
\fBnpm-completion\fR \- Tab Completion for npm
|
|
.SH SYNOPSIS
|
|
.P
|
|
.RS 2
|
|
.nf
|
|
source <(npm completion)
|
|
.fi
|
|
.RE
|
|
.SH DESCRIPTION
|
|
.P
|
|
Enables tab\-completion in all npm commands\.
|
|
.P
|
|
The synopsis above
|
|
loads the completions into your current shell\. Adding it to
|
|
your ~/\.bashrc or ~/\.zshrc will make the completions available
|
|
everywhere:
|
|
.P
|
|
.RS 2
|
|
.nf
|
|
npm completion >> ~/\.bashrc
|
|
npm completion >> ~/\.zshrc
|
|
.fi
|
|
.RE
|
|
.P
|
|
You may of course also pipe the output of npm completion to a file
|
|
such as \fB/usr/local/etc/bash_completion\.d/npm\fP if you have a system
|
|
that will read that file for you\.
|
|
.P
|
|
When \fBCOMP_CWORD\fP, \fBCOMP_LINE\fP, and \fBCOMP_POINT\fP are defined in the
|
|
environment, \fBnpm completion\fP acts in "plumbing mode", and outputs
|
|
completions based on the arguments\.
|
|
.SH SEE ALSO
|
|
.RS 0
|
|
.IP \(bu 2
|
|
npm help 7 developers
|
|
.IP \(bu 2
|
|
npm help 7 faq
|
|
.IP \(bu 2
|
|
npm help npm
|
|
|
|
.RE
|
|
|