From 37661ca5138a7da7c37632dcb6a9541a9f7186af Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Wed, 12 Feb 2025 23:59:01 +0000 Subject: [PATCH] New tmux windows now start in the same working directory --- tmux/.tmux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 5fde9a2..f457b5f 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -34,12 +34,12 @@ bind-key -n M-p display-message "#{@tmux_resize_mode}" bind-key -n M-d run-shell "~/.config/tmux/tmux-fuzzy-find-session.sh" # Split window, change keybindings to match vim concept of splits -bind-key -n M-V split-window -h -bind-key -n M-H split-window -v +bind-key -n M-V split-window -h -c "#{pane_current_path}" +bind-key -n M-H split-window -v -c "#{pane_current_path}" bind-key -n M-q kill-pane bind-key -n M-f resize-pane -Z bind-key -n M-s command-prompt -p "New session: " "run-shell '~/.config/tmux/tmux-create-session.sh '%%''" -bind-key -n M-w new-window +bind-key -n M-w new-window -c "#{pane_current_path}" bind-key -n M-r command-prompt -p "Rename window:" "rename-window '%%'" bind-key -n M-R command-prompt -p "Rename session:" "rename-session '%%'"