ev completions

Usage

ev completions <shell>

Description

Generates completion scripts for your shell. Supports bash, zsh, and fish.

Setup

Zsh (add to ~/.zshrc):

eval "$(ev completions zsh)"

Or append once:

ev completions zsh >> ~/.zshrc

Bash (add to ~/.bashrc):

eval "$(ev completions bash)"

Fish:

ev completions fish > ~/.config/fish/completions/ev.fish

Installing the Worktree Shell Function

ev completions install writes a shell function that automatically cds into a new worktree after ev worktree add. Run it once:

ev completions install

Auto-detects your shell from $SHELL (zsh → ~/.zshrc, bash → ~/.bashrc). Options:

ev completions install --shell zsh
ev completions install --shell bash
ev completions install --file ~/.config/zsh/.zshrc

The install is idempotent — re-running it after a CLI update replaces the function in place rather than appending a duplicate.

After installing, reload your shell:

source ~/.zshrc   # or ~/.bashrc

What Completes

  • All top-level commands (ev <tab>)
  • Subcommands (ev env <tab> → create, delete)
  • Backend types (ev backend set <tab> → ev, aws-secrets-manager, vault, gcp-secret-manager, 1password)
  • Common environment names (ev push <tab> → dev, staging, prod)

On this page