From 4e20211e72cccab4eee9d272bce0c10059cf6459 Mon Sep 17 00:00:00 2001 From: Ron Green <11993626+georgettica@users.noreply.github.com> Date: Wed, 21 Apr 2021 00:04:46 +0300 Subject: [PATCH] Update shell_completions.md --- shell_completions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell_completions.md b/shell_completions.md index 750e4e4bc..478ebb2a0 100644 --- a/shell_completions.md +++ b/shell_completions.md @@ -48,7 +48,7 @@ Zsh: $ echo "autoload -U compinit; compinit" >> ~/.zshrc # To load completions for each session, execute once: - $ %[1]s completion zsh > "${fpath[1]}/_yourprogram" + $ %[1]s completion zsh > "${fpath[1]}/_%[1]s" # You will need to start a new shell for this setup to take effect. @@ -66,7 +66,7 @@ PowerShell: # To load completions for every new session, run: PS> %[1]s completion powershell > %[1]s.ps1 # and source this file from your PowerShell profile. -`,cmd.Root().Use), +`,cmd.Root().Name()), DisableFlagsInUseLine: true, ValidArgs: []string{"bash", "zsh", "fish", "powershell"}, Args: cobra.ExactValidArgs(1),