top | item 47082958 (no title) gavmor | 10 days ago Hm... any idea how I might script `git worktree` into the new-pane action?Currently experimenting with agent-of-empires for tmux+worktrees to parallelize code changes. discuss order hn newest lawrencechen|10 days ago No built in way to override new-pane actions right now, but `cmux --help` can automate all parts of cmux.So you can make your own script that can make new panels/workspaces and just invoke it from the terminal: git worktree add -b my-branch ../repo-my-branch ws=$(cmux new-workspace 2>&1 | awk '{print $2}') cmux send --workspace "$ws" "cd ../repo-my-branch && claude" cmux send-key --workspace "$ws" Enter I think we should make this easier though, open to suggestions!
lawrencechen|10 days ago No built in way to override new-pane actions right now, but `cmux --help` can automate all parts of cmux.So you can make your own script that can make new panels/workspaces and just invoke it from the terminal: git worktree add -b my-branch ../repo-my-branch ws=$(cmux new-workspace 2>&1 | awk '{print $2}') cmux send --workspace "$ws" "cd ../repo-my-branch && claude" cmux send-key --workspace "$ws" Enter I think we should make this easier though, open to suggestions!
lawrencechen|10 days ago
So you can make your own script that can make new panels/workspaces and just invoke it from the terminal:
I think we should make this easier though, open to suggestions!