Request: Tab completion for bash commands

Status Closed — not planned
Maintainer reply None cached
Activity 7 comments · opened Feb 26, 2025 · closed Jan 31, 2026

When using bash commands (prefixed by !), it would be nice to have better pass through of features in the terminal.

One such simple and useful feature is using tab complete for file paths.

View original on GitHub ↗

7 Comments

github-actions[bot] · 10 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.

1160054 · 10 months ago

Hi! While this issue is about tab completion within Claude Code's bash mode, I wanted to share a community solution for zsh completion of the claude command itself.

!Image

I've created a comprehensive zsh completion script that provides:

  • ✨ Full command/subcommand completion (claude mcp add, claude plugin install, etc.)
  • 🔧 All CLI options with descriptions
  • ⚡ Dynamic completion for MCP servers, plugins, and session IDs
  • 🌍 120+ language translations

Repository: https://github.com/1160054/claude-code-zsh-completion

Quick Install:

mkdir -p ~/.zsh/completions && curl -o ~/.zsh/completions/_claude \
  https://raw.githubusercontent.com/1160054/claude-code-zsh-completion/main/completions/_claude

This might be helpful for those looking for shell integration while waiting for official support. Feedback and contributions welcome! 🙏

alanhe421 · 9 months ago

I'm confused about whether it's supported now because I didn't see any effect in actual use.

<img width="1432" height="570" alt="Image" src="https://github.com/user-attachments/assets/3fc15c4a-1fcd-402a-b9c5-7bb81cc17bfc" />

jhidalgor · 9 months ago

Completed: Verified docker-compose.yml was already correctly configured to use src/BinancePriceTracker.Api/Dockerfile. No changes needed.

filipecalasans · 9 months ago
Hi! While this issue is about tab completion _within_ Claude Code's bash mode, I wanted to share a community solution for zsh completion of the claude command itself. !Image ![Image ](https://private-user-images.githubusercontent.com/9334235/526266072-af0d13eb-928c-485d-b40e-a6f7e0f29b60.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjcxMTUwODcsIm5iZiI6MTc2NzExNDc4NywicGF0aCI6Ii85MzM0MjM1LzUyNjI2NjA3Mi1hZjBkMTNlYi05MjhjLTQ4NWQtYjQwZS1hNmY3ZTBmMjliNjAuZ2lmP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MTIzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTEyMzBUMTcxMzA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWNmYjA0YTBmZDEwZWFjOWFkOWJkZWEyNDM4MzI4ZmUzODM0ZGQ0ZDc2YjYyZmY2Njg3OTc2N2RhYTcwMTEwOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.4TNRFkDzLVHwpQ3fDzQNmOgfkJagzlZc0qEh2W7mGFI) I've created a comprehensive zsh completion script that provides: ✨ Full command/subcommand completion (claude mcp add, claude plugin install, etc.) 🔧 All CLI options with descriptions ⚡ Dynamic completion for MCP servers, plugins, and session IDs 🌍 120+ language translations Repository: https://github.com/1160054/claude-code-zsh-completion Quick Install: mkdir -p ~/.zsh/completions && curl -o ~/.zsh/completions/_claude \ https://raw.githubusercontent.com/1160054/claude-code-zsh-completion/main/completions/_claude This might be helpful for those looking for shell integration while waiting for official support. Feedback and contributions welcome! 🙏

How do we ensure auto-completion is kept up to date with the most recent version of the CLI?

github-actions[bot] · 8 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] · 8 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.