Skip to main content
Generate the autocompletion script for the zsh shell.

Usage

flexai completion zsh [flags]

Flags

FlagShortTypeDescription
--help-hbooleanDisplays this help page.
--no-descriptionsbooleanDisable completion descriptions
--verbose-vbooleanEnable verbose logging

Examples

Generate a zsh completion script

flexai completion zsh > _flexai

Create the zsh site-functions directory if it doesn’t exist

sudo mkdir -p /usr/local/share/zsh/site-functions

Move the completion script to the site-functions directory

sudo mv _flexai /usr/local/share/zsh/site-functions/

Reload your zsh configuration

source ~/.zshrc