Updates bindings to open new windows and panes in current directory. Inspired by https://woss.name/articles/tmux-new-windows-in-current-directory/ .
Installation with Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in .tmux.conf
:
set -g @plugin 'leyyinad/tmux-keep-directory'
Hit prefix + I
to fetch the plugin and source it. You should now be able to
use the plugin.