Skip to content

feat: add tab completions for bash, zsh, and fish#19

Merged
RodrigoEspinosa merged 1 commit into
masterfrom
feat/shell-completions
Apr 13, 2026
Merged

feat: add tab completions for bash, zsh, and fish#19
RodrigoEspinosa merged 1 commit into
masterfrom
feat/shell-completions

Conversation

@RodrigoEspinosa
Copy link
Copy Markdown
Owner

Summary

  • Adds shell tab-completion support for bash, zsh, and fish
  • Completions are emitted by wt init <shell> alongside the existing cd-wrapper — no extra setup needed
  • wt <tab> completes local branch names, wt -d <tab> completes only existing worktree branches, wt init <tab> completes shell names, and wt -<tab> completes flags

Test plan

  • eval "$(wt init zsh)" then wt <tab> shows branch names
  • wt -d <tab> only shows branches with active worktrees
  • wt init <tab> shows bash zsh fish
  • wt -<tab> shows -d -l -h -v
  • Repeat for bash and fish shells
  • Shellcheck passes (shellcheck bin/wt)

🤖 Generated with Claude Code

Completions are emitted by `wt init <shell>` alongside the existing
cd-wrapper, so no extra setup is needed.

Completion targets:
- `wt <tab>` — local branch names
- `wt -<tab>` — flags (-d, -l, -h, -v)
- `wt -d <tab>` — existing worktree branches only
- `wt init <tab>` — bash, zsh, fish

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@RodrigoEspinosa RodrigoEspinosa merged commit 61c7481 into master Apr 13, 2026
3 checks passed
@RodrigoEspinosa RodrigoEspinosa deleted the feat/shell-completions branch April 13, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant