summaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
authorSkladnayazebra <skladnayazebra@gmail.com>2026-10-01 11:55:00 +0200
committerSkladnayazebra <skladnayazebra@gmail.com>2026-10-01 11:55:00 +0200
commite6ff48d995e3973f441261b6c76972c963dc53e9 (patch)
tree7d1a1f274c46e0e563ee6ccfe9980f3575026286 /tmux
parent4ddfa7291106b3a1a61be9eb5a506b1afe04ecbe (diff)
tmux: do not copy path when making new window
Diffstat (limited to 'tmux')
-rw-r--r--tmux/tmux.conf5
1 files changed, 3 insertions, 2 deletions
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]'