1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
goreleaser/www/docs/cmd/goreleaser_completion.md

67 lines
1.4 KiB
Markdown
Raw Normal View History

# goreleaser completion
Prints shell autocompletion scripts for GoReleaser
## Synopsis
Allows you to setup your shell to autocomple GoReleaser commands and flags.
### Bash
$ source <(goreleaser completion bash)
To load completions for each session, execute once:
#### Linux
$ goreleaser completion bash > /etc/bash_completion.d/goreleaser
#### MacOS
$ goreleaser completion bash > /usr/local/etc/bash_completion.d/goreleaser
### ZSH
If shell completion is not already enabled in your environment you will need to enable it.
You can execute the following once:
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions for each session, execute once:
$ goreleaser completion zsh > "${fpath[1]}/_goreleaser"
You will need to start a new shell for this setup to take effect.
### Fish
$ goreleaser completion fish | source
To load completions for each session, execute once:
$ goreleaser completion fish > ~/.config/fish/completions/goreleaser.fish
**NOTE**: If you are using an official GoReleaser package, it should setup autocompletions for you out of the box.
```
goreleaser completion [bash|zsh|fish]
```
## Options
```
-h, --help help for completion
```
## Options inherited from parent commands
```
--debug Enable debug mode
```
## See also
* [goreleaser](/cmd/goreleaser/) - Deliver Go binaries as fast and easily as possible