Skip to content

zsh

Generate the autocompletion script for zsh

Terminal window
conhive-agent completion zsh

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 <(conhive-agent completion zsh)

To load completions for every new session, execute once:

conhive-agent completion zsh > "${fpath[1]}/_conhive-agent"
conhive-agent completion zsh > $(brew --prefix)/share/zsh/site-functions/_conhive-agent

You will need to start a new shell for this setup to take effect.

Terminal window
conhive-agent completion zsh [flags]
Terminal window
-h, --help help for zsh
--no-descriptions disable completion descriptions
-f, --log-format string Specify the logging format (options: console,
json) (default "text")
-l, --log-level string Define the logging level (options: trace,
debug, info, warn, error, fatal, panic)
(default "info")
-o, --log-to-file Enable logging to a file (default true)
-p, --port int32 Port to run the server on (default 5050)
-w, --workdir string Set the working directory for agent operations
(default: $HOME/.conhive)