Carry over current environment when creating a new tmux pane
0
I'm trying to speed up the creation of new panes in my tmux setup. One timesink is that whenever I create a new pane, the ~/.zshrc gets sourced. What I'm wondering is whether it would possible to instead carry over the current pane's environment (functions, environment variables, aliases, etc.) to the new pane. A thing I have noticed is that when I create a sub-shell in zsh , it adopts the configuration from the parent. Can you achieve the same behaviour when creating tmux panes? Alternatively, it would also work for me if the ~/.zshrc was only sourced initially when creating the tmux session, and the resulting environment would be the default for all subsequently created panes. (I saw this tmux start new pane with my current environemnt, but the accepted answer does not answer my question.)