mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 20:56:57 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/npm-completion
Normal file
25
tldr/npm-completion
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
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/commands/npm-completion>.
|
||||
|
||||
- Enable tab-completion for the current shell session:
|
||||
|
||||
`npm completion`
|
||||
|
||||
- Add completion to your shell profile (Bash):
|
||||
|
||||
`npm completion >> ~/.bashrc`
|
||||
|
||||
- Add completion to your shell profile (Zsh):
|
||||
|
||||
`npm completion >> ~/.zshrc`
|
||||
|
||||
- Write completions script to a specific file:
|
||||
|
||||
`npm completion > {{path/to/file}}`
|
||||
Reference in New Issue
Block a user