From 4557750c36eca46608a88e298af43d658bb99ebc Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Wed, 6 Dec 2023 11:32:17 +0100 Subject: [PATCH] now splitting the pane keeps the current working directory --- tmux/tmux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index d37c7b7..52b35b8 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -29,9 +29,9 @@ bind X kill-session # Bind Control-a + C to create a new session bind C new-session -# split panes using | and - -bind | split-window -h -bind - split-window -v +# 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}" unbind '"' unbind %