[FEATURE] Bash completion for Claude Code tool

Status Open
Maintainer reply None cached
Activity 10 comments · opened Sep 17, 2025

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Claude Code doesn't install bash completion for the claude tool.

Proposed Solution

When claude is installed, bash completion script for claude is installed in the system. So when typing, for example, claude --he and clicking Tab, it should complete to claude --help.

Alternative Solutions

_No response_

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

10 Comments

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

aster-void · 8 months ago

Still relevant. don't close

yz81 · 8 months ago

second!

RilusMahmud · 7 months ago

+1, long due!

rishiba · 7 months ago

+1

dhanvi · 7 months ago

It would be great to have zsh support alongside bash. 🙂

danielamar101 · 7 months ago

pls

jpesce · 4 months ago

For zsh users, in the mean time, you can add this to your .zshrc to get fairly reasonable completion:

compdef _gnu_generic claude

This uses zsh's built-in _gnu_generic completer, which parses --help output to generate completions automatically.

cblecker · 4 months ago

Until there is an official way to handle this, I've created my own workaround: https://github.com/cblecker/claude-completion

smorin · 3 months ago

Looking for this feature too