cub completion zsh
cub completion zsh
Generate the autocompletion script for zsh
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:
echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions in your current shell session:
source <(cub completion zsh)
To load completions for every new session, execute once:
Linux:
cub completion zsh > "${fpath[1]}/_cub"
macOS:
cub completion zsh > $(brew --prefix)/share/zsh/site-functions/_cub
You will need to start a new shell for this setup to take effect.
cub completion zsh [flags]
Options
-h, --help help for zsh
--no-descriptions disable completion descriptions
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub completion - Generate the autocompletion script for the specified shell