# ed completions zsh

> Prints the zsh completion script on stdout so you can place it yourself.

- Canonical URL: https://getedith.pro/docs/cli/getting-started/completions-zsh
- Updated: 2026-12-02

Prints the zsh completion script on stdout so you can place it yourself.

```
ed completions zsh
```

No options of its own; `--help` and `--version` are generated. What it prints is
byte for byte what `install` would have written, so redirecting it into the
right directory is a complete substitute for installing, minus the profile edit
and the recorded path.

Examples

```
ed completions zsh
ed completions zsh > ~/.zsh/completions/_ed
```

The script starts with `#compdef ed edith` and defines `_ed_complete`, which
shells out to `ed __complete --index $((CURRENT-1)) -- "${words[@]}"`, treats a
line of `#files` as a call to `_files`, and passes everything else to `compadd`.
It handles being loaded either as an autoloaded function or sourced directly.

## Where to go next

- [Getting started with `ed`](https://getedith.pro/docs/cli/getting-started), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
