Is there anyway to find out information about the current working directory of any pane from within a tmux session?
I'd like to write a bash script that changes the directory of the current pane to the directory of another pane, even if that pane has a program or script already running in it.
The way I'd like to do it is to navigate to pane 1, then I'd goto pane 2, hit a hot key and pane 2 would now change to the same pwd as pane 1.
tmux display-message -p -F "#{pane_current_path}" -t0
?