Skip to main content

shell-completion

In the following, you can find instructions on how to generate release-plz command completions for each shell. To learn more, run release-plz generate-completions --help.

zsh

To load completions in your current shell session:

autoload bashcompinit; bashcompinit
source <(release-plz generate-completions)

To load completions for every new session, execute once:

release-plz generate-completions zsh > _release-plz
sudo mv _release-plz /usr/local/share/zsh/site-functions/

bash

To load completions in your current shell session:

source <(release-plz generate-completions)

To load completions for every new session, execute once:

release-plz generate-completions bash > ~/.local/share/bash-completion/completions/release-plz
caution

The package bash-completion is required for this to work.

fish

To load completions in your current shell session:

release-plz generate-completions fish | source

To load completions for every new session, execute once:

release-plz generate-completions fish > $HOME/.config/fish/completions/release-plz.fish