I often want to start a persistent process from a particular directory and be able to monitor it, while still keeping a command line in that directory for other commands. My current workflow is to cmd + shift + d
to split panes, but the cwd of the new pane is back at home, and I need to cd back to where I was. Is there a good way to split panes and automatically set cwd of the new pane to the same directory as the pane it was split from?
lanVS's solution works out, but there may be a side effect that you don't want: If you open new tab/windows, it will reuse previous session's directory.
So if you just want the new split pane to act like that, you can do that:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With