Skip to content

Commit

Permalink
Update shell_completions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
georgettica authored Apr 20, 2021
1 parent 5be76db commit 4e20211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell_completions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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),
Expand Down

0 comments on commit 4e20211

Please sign in to comment.