From 4ddab0af862bc8efdbf53e8576c7c59a25abe8f7 Mon Sep 17 00:00:00 2001 From: dadada Date: Tue, 28 Dec 2021 23:32:07 +0100 Subject: [PATCH] Changed opening of tmux windows and panes to open previous directory --- home/modules/tmux.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/modules/tmux.nix b/home/modules/tmux.nix index eed1330..8ea0faf 100644 --- a/home/modules/tmux.nix +++ b/home/modules/tmux.nix @@ -20,6 +20,9 @@ in set-option -g status-interval 5 set-option -g automatic-rename on set-option -g automatic-rename-format '#{b:pane_current_path}' + bind '"' split-window -c "#{pane_current_path}" + bind % split-window -h -c "#{pane_current_path}" + bind c new-window -c "#{pane_current_path}" ''; }; };