Skip to content

completion zsh

Generate the autocompletion script for the zsh shell.

flexai completion zsh [flags]
-h , --help
<boolean>
Optional
Flag

Displays this help page.

Optional
Flag

disable completion descriptions

Optional
Flag

enable verbose logging

Terminal window
flexai completion zsh > _flexai

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

Section titled “Create the zsh site-functions directory if it doesn’t exist”
Terminal window
sudo mkdir -p /usr/local/share/zsh/site-functions

Move the completion script to the site-functions directory

Section titled “Move the completion script to the site-functions directory”
Terminal window
sudo mv _flexai /usr/local/share/zsh/site-functions/
Terminal window
source ~/.zshrc