From 5ed268293365b6b01a1e1c587b690e2252a64748 Mon Sep 17 00:00:00 2001 From: Vas Sudanagunta Date: Sun, 22 Dec 2024 13:16:21 -0500 Subject: [PATCH] docs: correct incorrect desc and usage in npm-completion.md Fixes #4620 --- docs/lib/content/commands/npm-completion.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/lib/content/commands/npm-completion.md b/docs/lib/content/commands/npm-completion.md index dcc25997fa585..2392199acac5f 100644 --- a/docs/lib/content/commands/npm-completion.md +++ b/docs/lib/content/commands/npm-completion.md @@ -10,10 +10,15 @@ description: Tab Completion for npm ### Description -Enables tab-completion in all npm commands. +Generates a shell script to enable tab-completion for all npm commands. -The synopsis above -loads the completions into your current shell. Adding it to +To load the completions into your current shell: + +```bash +source <(npm completion) +``` + +Adding its output to your ~/.bashrc or ~/.zshrc will make the completions available everywhere: