From 1565b52d844fa8b23b5f37446c287bdab7db7f26 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Wed, 6 Dec 2023 11:59:51 +0100 Subject: [PATCH] now creating a new pane will retain the previous working directory --- tmux/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 909c8b3..c137251 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -32,6 +32,10 @@ bind C new-session # split panes using | and - and use the current working directory bind | split-window -h -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}" + +# Create new window with current path +bind c new-window -c "#{pane_current_path}" + unbind '"' unbind %