From e1b57f636d3fc7193378f4a501614d654246d2ac Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 7 May 2024 08:46:46 +0200 Subject: [PATCH] tmux: Spawn new windows and splits in the current directory --- home-manager/modules/tmux/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home-manager/modules/tmux/default.nix b/home-manager/modules/tmux/default.nix index 2d31b25..211c0c4 100644 --- a/home-manager/modules/tmux/default.nix +++ b/home-manager/modules/tmux/default.nix @@ -69,8 +69,9 @@ in bind-key C-a send-prefix - bind-key | split-window -h - bind-key - split-window -v + bind-key | split-window -h -c "#{pane_current_path}" + bind-key - split-window -v -c "#{pane_current_path}" + bind-key c new-window -c "#{pane_current_path}" bind-key h select-pane -L bind-key n select-pane -D