From bcc4f9cafe1ac320156012753f1c6c8710fe8e55 Mon Sep 17 00:00:00 2001 From: Sloane Perrault Date: Thu, 4 Aug 2022 09:45:36 -0400 Subject: [PATCH] keep cwd when creating new windows, panes in tmux --- .tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 174e1c3..22984a3 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -35,4 +35,9 @@ bind-key -T copy-mode-vi C-k select-pane -U bind-key -T copy-mode-vi C-l select-pane -R bind-key -T copy-mode-vi 'C-\' select-pane -l +# Set new panes to open in current directory +bind c new-window -c "#{pane_current_path}" +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" + run '~/.tmux/plugins/tpm/tpm'