mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
542 B
Plaintext
26 lines
542 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# npm completion
|
|
|
|
> Enable or set up tab-completion for npm commands.
|
|
> More information: <https://docs.npmjs.com/cli/npm-completion/>.
|
|
|
|
- Enable tab-completion for the current shell session:
|
|
|
|
`npm completion`
|
|
|
|
- Add completion to the shell profile (Bash):
|
|
|
|
`npm completion >> ~/.bashrc`
|
|
|
|
- Add completion to the shell profile (Zsh):
|
|
|
|
`npm completion >> ~/.zshrc`
|
|
|
|
- Write completions script to a specific file:
|
|
|
|
`npm completion > {{path/to/file}}`
|