From 30bc19efcd6059c47ec8c759b71ac701906a2dd7 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Thu, 9 Oct 2025 20:00:52 +0200 Subject: [PATCH] default to make new windows in the same working directory --- tmux/.tmux.conf | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 37c135d..968be8c 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -3,23 +3,22 @@ unbind C-b set-option -g prefix C-a bind-key C-a send-prefix -# Reload config with Prefix + r +unbind c +bind c new-window -c "#{pane_current_path}" + bind r source-file ~/.tmux.conf \; display "Reloaded!" -# Enable mouse support for pane selection and scrolling set -g mouse on -# Use Vim-like keys for pane navigation bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R -# Split windows with Prefix + | (vertical) and Prefix + - (horizontal) bind | split-window -h bind - split-window -v -bind g popup -E -w 80% -h 90% -d "#{pane_current_path}" lazygit +bind g popup -E -w 80% -h 90% -d "#{pane_current_path}" -B lazygit set -g default-terminal "tmux-256color" set -as terminal-overrides ",xterm-256color:Tc"