A tmux plugin which preserves the current directory when creating new windows and panes.
-
Install the Tmux Plugin Manager (TPM)
-
Add the following to your .tmux.conf file:
set -g @plugin 'openjck/tmux-keep-current-directory'
-
Press
prefix + I
This plugin was inspired by a Stack Overflow answer by Simon Kohlmeyer and Matthias Braun.