Skip to content

Instantly share code, notes, and snippets.

View Phil-Barber's full-sized avatar
🐢
Reviewing

Phil-Barber

🐢
Reviewing
View GitHub Profile
@Phil-Barber
Phil-Barber / gwt.sh
Last active September 15, 2026 10:18
GWT: Simple git worktree wrapper
# gwt - interactive git worktree manager
#
# gwt interactive picker: enter=switch ctrl-a=add ctrl-d=remove
# gwt add [br] add worktree for branch (prompts if omitted), cd into it
# gwt rm pick a worktree to remove
# gwt ls list worktrees
#
# New worktrees live at ~/worktrees/<repo>/<branch>
_gwt_main_path() {