mirror of
https://github.com/spf13/cobra
synced 2025-05-05 12:57:22 +00:00
Update shell_completions.md
This commit is contained in:
parent
96a01f0942
commit
b0d065ae0d
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue