2021-07-03 14:04:19 -03:00
|
|
|
# goreleaser completion zsh
|
|
|
|
|
2021-12-21 16:14:20 -03:00
|
|
|
Generate the autocompletion script for zsh
|
2021-07-03 14:04:19 -03:00
|
|
|
|
|
|
|
## Synopsis
|
|
|
|
|
|
|
|
Generate the autocompletion script for the zsh shell.
|
|
|
|
|
|
|
|
If shell completion is not already enabled in your environment you will need
|
|
|
|
to enable it. You can execute the following once:
|
|
|
|
|
2021-12-21 16:14:20 -03:00
|
|
|
echo "autoload -U compinit; compinit" >> ~/.zshrc
|
2021-07-03 14:04:19 -03:00
|
|
|
|
|
|
|
To load completions for every new session, execute once:
|
2021-12-21 16:14:20 -03:00
|
|
|
|
|
|
|
### Linux:
|
|
|
|
|
|
|
|
goreleaser completion zsh > "${fpath[1]}/_goreleaser"
|
|
|
|
|
|
|
|
### macOS:
|
|
|
|
|
|
|
|
goreleaser completion zsh > /usr/local/share/zsh/site-functions/_goreleaser
|
2021-07-03 14:04:19 -03:00
|
|
|
|
|
|
|
You will need to start a new shell for this setup to take effect.
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
goreleaser completion zsh [flags]
|
|
|
|
```
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
```
|
|
|
|
-h, --help help for zsh
|
|
|
|
--no-descriptions disable completion descriptions
|
|
|
|
```
|
|
|
|
|
|
|
|
## Options inherited from parent commands
|
|
|
|
|
|
|
|
```
|
|
|
|
--debug Enable debug mode
|
|
|
|
```
|
|
|
|
|
|
|
|
## See also
|
|
|
|
|
2021-12-21 16:14:20 -03:00
|
|
|
* [goreleaser completion](/cmd/goreleaser_completion/) - Generate the autocompletion script for the specified shell
|
2021-07-03 14:04:19 -03:00
|
|
|
|