From eedcb277fb5eb5e70d42a2b63db99302bfcfa2aa Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 17 Feb 2022 15:28:28 +0100 Subject: [PATCH] tmux: Open new windows in current working dir --- .config/tmux/tmux.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index e8fcd1e..923042a 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -11,9 +11,12 @@ bind-key C-a send-prefix # Split panes with > and < unbind % -bind-key < split-window -v +bind-key < split-window -v -c "#{pane_current_path}" unbind '"' -bind-key > split-window -h +bind-key > split-window -h -c "#{pane_current_path}" + +# Create new window in current path +bind-key -T prefix c new-window -c "#{pane_current_path}" # Change panes with Alt- bind -n M-Left select-pane -L