hubcli completion zsh¶
Generates the completion script for the zsh shell.
The command has the following format:
hubcli completion zsh [flags]
where:
- flags
- One or more optional flags that provide additional control over execution of the command.
By default, the script is directed to the shell window. To export the script for use in a session, use an operating system redirect, for example:
hubcli completion zsh > script.file
The following flags are available:
--debug- Enables debug logging.
-hor--help- Returns help information for this command.
--no-descriptions- Disables completion descriptions.
If shell completion is not already enabled in your environment you need to enable it. You can do this by executing the following command once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
You can then load the shell script to the current shell session:
source <(hubcli completion zsh)
where source is the name of the file to which the completion script was directed by the command.
To load completions for every new session, execute the following command once:
On Linux: hubcli completion zsh > "${fpath\[1\]}/_hubcli"
You need to start a new shell for the result of this command to take effect.