I'm working with tmux and I'd like to pass some information from one pane to another.

For example in first pane i've got the folder by pwd command and instead of copypast to another pane I want to assign this result to some variable and use it in another one. I think I can't use bash variables because they're living in bash session or in config file.

Any idea to resolve this?