# ed completions bash

> ed completions bash in the Edith ed command line reference. Prints the bash completion script on stdout.

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

Prints the bash completion script on stdout.

```
ed completions bash
```

No options of its own; `--help` and `--version` are generated.

Examples

```
ed completions bash
ed completions bash > ~/.local/share/bash-completion/completions/ed
```

It defines `_ed_complete`, calls `ed __complete --index "$COMP_CWORD" --
"${COMP_WORDS[@]}"`, expands a `#files` line with `compgen -f`, and ends with
`complete -o bashdefault -F _ed_complete ed edith`.

## 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
