Weep can automatically generate shell completion scripts for Bash, Zsh, and Fish.
source <(weep completion bash)
To load completions for each session, execute this command once:
# Linux:
weep completion bash > /etc/bash_completion.d/weep
# MacOS:
weep completion bash > /usr/local/etc/bash_completion.d/weep
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 this command once:
weep completion zsh > "${fpath[1]}/_weep"
You will need to start a new shell for this setup to take effect.
weep completion fish | source
To load completions for each session, execute this command once:
weep completion fish > ~/.config/fish/completions/weep.fish