mirror of
https://github.com/spf13/cobra
synced 2024-11-05 21:37:14 +00:00
feat: Add how to load completions in your current zsh session (#1608)
This commit is contained in:
parent
65b1195d6e
commit
8cc7be2119
1 changed files with 4 additions and 0 deletions
|
@ -669,6 +669,10 @@ to enable it. You can execute the following once:
|
|||
|
||||
echo "autoload -U compinit; compinit" >> ~/.zshrc
|
||||
|
||||
To load completions in your current shell session:
|
||||
|
||||
source <(%[1]s completion zsh); compdef _%[1]s %[1]s
|
||||
|
||||
To load completions for every new session, execute once:
|
||||
|
||||
#### Linux:
|
||||
|
|
Loading…
Reference in a new issue