To connect to the root session of a git worktree or repository from a nested session, use the --root flag with the sesh connect command.
I recommend adding this to your tmux.conf
:
bind -N "switch to root session (via sesh) " 9 run-shell "sesh connect --root \'$(pwd)\'"
Note: This will only work if you are in a git worktree or git repository. For now, git worktrees expect a .bare
folder.
What's Changed
- Add connect root flag by @joshmedeski in #183
Full Changelog: v2.3.3...v2.4.0