Skip to content

feat: Improve Windows Bash/PowerShell support with full feature parity#70

Closed
shijenwai wants to merge 2 commits into
tobi:mainfrom
shijenwai:add-windows-support
Closed

feat: Improve Windows Bash/PowerShell support with full feature parity#70
shijenwai wants to merge 2 commits into
tobi:mainfrom
shijenwai:add-windows-support

Conversation

@shijenwai

Copy link
Copy Markdown

Summary

Enhanced the Windows alternative implementations (Bash and PowerShell) to match the Ruby version's full functionality, with improved documentation and
installation experience.

Changes

  • Feature parity with Ruby version:

    • Added try . <name> - Create worktree from current repo
    • Added try ./path [name] - Create worktree from specified repo path
    • Added auto-increment naming when directory already exists (e.g., myprojectmyproject-2)
  • PowerShell fixes:

    • Fixed reserved keyword conflict by using Invoke-Try function with try alias
    • Works with both PowerShell 5.x and 7.x (different profile paths)
  • Documentation improvements:

    • Clearer step-by-step installation instructions
    • Added both "Download from GitHub" and "Copy from local clone" options
    • Usage table with all supported commands
    • Examples for both Bash and PowerShell

Why

The Ruby version has encoding compatibility issues on Windows with non-ASCII usernames or paths (CP950/UTF-8 conflict). These shell alternatives provide a
zero-dependency solution that works natively without encoding issues.

Tested on

  • Git Bash (MSYS2/MINGW64)
  • PowerShell 7.x

shijenwai and others added 2 commits December 10, 2025 18:00
- Add `try . <name>` and `try ./path [name]` worktree support
- Add unique directory name versioning (auto -2, -3 suffix)
- Fix PowerShell reserved keyword issue (use Invoke-Try + alias)
- Improve README with clearer installation steps
- Support both PowerShell 5.x and 7.x profile paths

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tobi

tobi commented Mar 9, 2026

Copy link
Copy Markdown
Owner

Closing - this PR is quite old now and the codebase has changed significantly since. Thanks for the contribution though!

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.

2 participants