---
title: "ezgh completion zsh"
description: "Generate the autocompletion script for zsh."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh completion zsh

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh completion zsh [flags]
```

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:

```text
echo "autoload -U compinit; compinit" >> ~/.zshrc
```

To load completions in your current shell session:

```text
source <(ezgh completion zsh)
```

To load completions for every new session, execute once:

Linux:

```text
ezgh completion zsh > "${fpath[1]}/_ezgh"
```

macOS:

```text
ezgh completion zsh > $(brew --prefix)/share/zsh/site-functions/_ezgh
```

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

Part of [`ezgh completion`](/cli/reference/completion).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--no-descriptions` | boolean |  | disable completion descriptions |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/completion-zsh/index.mdx
