claude-code - 💡(How to fix) Fix [FEATURE] Add shell completion support (bash/zsh/fish) for claude CLI [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#57871Fetched 2026-05-11 03:23:12
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Author
Timeline (top)
commented ×2labeled ×2closed ×1mentioned ×1

Code Example

claude completion bash
claude completion zsh
claude completion fish

---

# zsh
source <(claude completion zsh)

# bash
source <(claude completion bash)
RAW_BUFFERClick to expand / collapse

Feature Request

Add a built-in shell completion generator for the claude CLI, similar to how other CLI tools handle this:

  • kubectl completion zsh
  • gh completion -s zsh
  • helm completion bash

Proposed command

claude completion bash
claude completion zsh
claude completion fish

Usage

# zsh
source <(claude completion zsh)

# bash
source <(claude completion bash)

Why

Claude Code has a growing number of subcommands (agents, auth, mcp, plugin, project, install, ultrareview, etc.) and flags (--model, --effort, --print, --worktree, --mcp-config, etc.). Tab completion would make the CLI significantly more discoverable and faster to use, especially for less frequently used options.

Environment

  • Platform: macOS (darwin)
  • Version: 2.1.138

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Add shell completion support (bash/zsh/fish) for claude CLI [2 comments, 3 participants]