Skip to content

feat: shell aliases for quick worktree navigation#5

Merged
kuderr merged 2 commits into
mainfrom
wt/aliases
Feb 25, 2026
Merged

feat: shell aliases for quick worktree navigation#5
kuderr merged 2 commits into
mainfrom
wt/aliases

Conversation

@kuderr
Copy link
Copy Markdown
Owner

@kuderr kuderr commented Feb 25, 2026

Summary

  • Adds aliases/git-wt.sh — optional shell aliases for faster git wt workflows
  • wtcd <name> to cd into a worktree, wto to cd to origin, wtn to create + cd in one step
  • Shorthand aliases: wtls, wtla, wtrm, wtopen, wtclean, wtpath
  • Tab completion for bash and zsh included
  • Updated README, CHANGELOG, SKILL.md, CLAUDE.md

Aliases

Alias Equivalent Description
wtcd <name> cd $(git wt path <name>) cd into a worktree
wto cd $(git wt origin) cd into the origin repo
wtn [name] git wt new + cd Create worktree and cd into it
wtls git wt list List worktrees
wtla git wt list-all List all worktrees
wtrm git wt rm Remove a worktree
wtopen git wt open Open in editor
wtclean git wt clean Remove all worktrees
wtpath git wt path Print worktree path

Test plan

  • Source aliases/git-wt.sh in zsh and bash
  • Verify wtn test-alias creates worktree and cd's into it
  • Verify wtcd test-alias works with tab completion
  • Verify wto returns to origin repo
  • Verify wtrm test-alias cleans up

🤖 Generated with Claude Code

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Adds aliases/git-wt.sh with shorthand functions: wtcd (cd into worktree),
wto (cd to origin), wtn (new + cd), wtls, wtla, wtrm, wtopen, wtclean,
wtpath. Includes tab completion for bash and zsh.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Downloads aliases/git-wt.sh to ~/.local/share/git-wt/ and auto-adds
source line to .zshrc/.bashrc.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kuderr kuderr merged commit 10463df into main Feb 25, 2026
2 checks passed
@kuderr kuderr deleted the wt/aliases branch February 25, 2026 12:18
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