From e6ff48d995e3973f441261b6c76972c963dc53e9 Mon Sep 17 00:00:00 2001 From: Skladnayazebra Date: Thu, 1 Oct 2026 11:55:00 +0200 Subject: tmux: do not copy path when making new window --- tmux/tmux.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tmux') diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 7b1b362..1b432d8 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -33,10 +33,11 @@ set-window-option -g window-status-format '#{?pane_in_mode,#[bg=brightyellow],} # paints selected tab white (unless in scroll mode) set-window-option -g window-status-current-format '#[bg=brightwhite]#{?pane_in_mode,#[bg=brightyellow],} #I:#W #{?#{m:*Z*,#{window_flags}},[Z]} #[default]' -# open pane splits and windows at the same path as current pane +# open pane splits at the same path as current pane bind '"' split-window -v -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" -bind "c" new-window -c "#{pane_current_path}" +# but reset to the initial path when creating a window +# bind "c" new-window -c "#{pane_current_path}" # default but with no space on the right set-window-option -g status-left '[#S]' -- cgit v1.3.1