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
|
|
|
|
2022-06-21 22:34:32 -03:00
|
|
|
To load completions in your current shell session:
|
|
|
|
|
2023-04-07 15:08:48 +00:00
|
|
|
source <(goreleaser completion zsh)
|
2022-06-21 22:34:32 -03:00
|
|
|
|
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:
|
|
|
|
|
2022-06-21 22:34:32 -03:00
|
|
|
goreleaser completion zsh > $(brew --prefix)/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
|
|
|
|
|
|
|
|
```
|
2023-05-28 02:20:48 +00:00
|
|
|
--verbose Enable verbose mode
|
2021-07-03 14:04:19 -03:00
|
|
|
```
|
|
|
|
|
|
|
|
## See also
|
|
|
|
|
2024-07-08 23:30:10 -03:00
|
|
|
* [goreleaser completion](goreleaser_completion.md) - Generate the autocompletion script for the specified shell
|
2021-07-03 14:04:19 -03:00
|
|
|
|