From a4c6a5a8b379b385cc1f091fb04f961b196c6ffc Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 22 Dec 2025 09:55:48 -0300 Subject: etc/tmux/tmux.conf: Use the same working directory when splitting windows --- etc/tmux/tmux.conf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') diff --git a/etc/tmux/tmux.conf b/etc/tmux/tmux.conf index 93101cd..53fee2b 100644 --- a/etc/tmux/tmux.conf +++ b/etc/tmux/tmux.conf @@ -83,6 +83,8 @@ set -g display-panes-time 2500 bind-key t resize-pane -x 80 bind -n M-r attach-session -t . -c '#{pane_current_path}' \; display-message "CWD for session updated to #{pane_current_path}!" +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" bind-key u capture-pane \; save-buffer $XDG_RUNTIME_DIR/tmux-urlscan-buffer \; new-window -n "urlscan" '$SHELL -c "urlscan < $XDG_RUNTIME_DIR/tmux-urlscan-buffer"' bind-key - last -- cgit v1.2.3