github.com/goreleaser/goreleaser@v1.25.1/www/docs/cmd/goreleaser_completion_zsh.md (about) 1 # goreleaser completion zsh 2 3 Generate the autocompletion script for zsh 4 5 ## Synopsis 6 7 Generate the autocompletion script for the zsh shell. 8 9 If shell completion is not already enabled in your environment you will need 10 to enable it. You can execute the following once: 11 12 echo "autoload -U compinit; compinit" >> ~/.zshrc 13 14 To load completions in your current shell session: 15 16 source <(goreleaser completion zsh) 17 18 To load completions for every new session, execute once: 19 20 ### Linux: 21 22 goreleaser completion zsh > "${fpath[1]}/_goreleaser" 23 24 ### macOS: 25 26 goreleaser completion zsh > $(brew --prefix)/share/zsh/site-functions/_goreleaser 27 28 You will need to start a new shell for this setup to take effect. 29 30 31 ``` 32 goreleaser completion zsh [flags] 33 ``` 34 35 ## Options 36 37 ``` 38 -h, --help help for zsh 39 --no-descriptions disable completion descriptions 40 ``` 41 42 ## Options inherited from parent commands 43 44 ``` 45 --debug Enable verbose mode (deprecated) 46 --verbose Enable verbose mode 47 ``` 48 49 ## See also 50 51 * [goreleaser completion](/cmd/goreleaser_completion/) - Generate the autocompletion script for the specified shell 52