If I create a new pane B from pane A and I'm not running any commands in A then B gets created with the same pwd as A which is what I want. However if while creating the new pane I'm running a bash command (an alias of 3 chained commands actually) in A that temporarily changes pwd then B gets created in whichever pwd is active in A at the time I press the key shortcuts instead of the pwd I am running the command from.
1) Is there a way of forcing tmux to create a new pane using the pwd before running such command? 2) If 1) isn't possible what's the right way of running the command so that the pwd is preserved?
I'm using tmux 1.8 with this .tmux.conf:
https://github.com/slnc/dotfiles/blob/master/.tmux.conf
Thanks