Skip to content

v1.0.0

Choose a tag to compare

@sindrej sindrej released this 01 Jun 10:56
a373b36

First public release.

treeswitch is a macOS menu-bar tool (SwiftBar plugin) for switching your local dev servers between git worktrees.

Features

  • A submenu per configured repo listing its git worktrees, with a ✓ on the one that's running.
  • Click a worktree to kill that repo's server and relaunch it from the chosen worktree — headless, in its own process group (clean kill of the whole tree), with per-launch log rotation.
  • ↩ Reset to main — one click switches every repo back to its default-branch worktree.
  • GitHub PR numbers next to worktree branches (via gh, cached + background-refreshed; works with GitHub Enterprise).
  • Dirty / ahead-behind hints, failure notifications, Stop all, restart, open-in-browser.
  • install.sh / uninstall.sh and a non-destructive smoke-test.sh.

Requirements

macOS, SwiftBar, zsh, git; gh optional (for PR numbers).