You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit enables comprehensive Windows support with both Git Bash
and PowerShell shell integration, providing Windows users with the
same seamless worktree management experience as macOS and Linux users.
Changes:
- Enable Windows AMD64 builds in .goreleaser.yml with zip packaging
- Add PowerShell (pwsh) to supported shells in shell_init.go
- Implement PowerShell completion script patching to fix command name resolution
- Create PowerShell cd hook with smart executable path discovery
- Fix path separator handling in tests for cross-platform compatibility
- Skip Unix-specific path tests on Windows with TODO comments
- Re-enable windows-latest in GitHub Actions CI matrix
- Add Git configuration for Windows CI to handle line endings
- Update README with comprehensive Windows installation and setup instructions
PowerShell Integration:
- Uses 'pwsh' identifier (urfave/cli standard for PowerShell)
- Patches completion script to hardcode 'wtp' command name
- Implements smart executable discovery (PATH -> current directory)
- Prevents infinite recursion by storing executable path reference
- Documents warning suppression for clean user experience
Git Bash Integration:
- Works out of the box with existing Bash completion
- Uses standard Bash hook implementation
- No Windows-specific changes needed
Testing:
- Fixed cross-platform path tests using filepath.Join()
- Added runtime.GOOS checks for Windows test skipping
- CI validates builds on windows-latest runner
🚀 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
@@ -277,12 +302,41 @@ wtp shell-init fish | source
277
302
```
278
303
279
304
> **Note:** Bash completion requires bash-completion v2. On macOS, install
280
-
> Homebrew’s Bash 5.x and `bash-completion@2`, then
305
+
> Homebrew's Bash 5.x and `bash-completion@2`, then
281
306
> `source /opt/homebrew/etc/profile.d/bash_completion.sh` (or the path shown
282
307
> after installation) before enabling the one-liner above.
283
308
284
309
After reloading your shell you get the same experience as Homebrew users.
285
310
311
+
#### Windows Setup
312
+
313
+
**PowerShell:**
314
+
315
+
Add to your PowerShell profile (`$PROFILE` - typically `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` or `~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1`):
316
+
317
+
```powershell
318
+
# Add wtp shell integration (completion + cd functionality)
0 commit comments