tmux: 分割窗口时保持相同的工作目录

This commit is contained in:
2025-11-01 12:38:46 +08:00
parent 8b45af1ba9
commit 7c92dac1c0

View File

@@ -6,3 +6,6 @@ bind-key M-Space send-prefix
# set ` as secondary prefix # set ` as secondary prefix
set -g prefix2 ` set -g prefix2 `
bind-key ` send-prefix -2 bind-key ` send-prefix -2
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -hc "#{pane_current_path}"