I'm trying to run tmux sessions inside and outside of a remote ssh session, so I want to use c-b prefix for the outer (local) session and c-a prefix inner (remote) session.
My question is how can it be done with a single tmux.conf. It's easy to check with bash if the session is remote using something like
[ -n "$SSH_CLIENT" ], but I don't know how to reliably incorporate this into tmux.conf, given that
if appears to be asynchronous and subject to race conditions.