From 7704958ad8624030120b6a7bb27e76575c702731 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Tue, 13 Jan 2026 15:37:44 +0100 Subject: [PATCH] fix auto session save --- modules/tmux.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/tmux.nix b/modules/tmux.nix index 54bfa51..4502641 100644 --- a/modules/tmux.nix +++ b/modules/tmux.nix @@ -1,5 +1,8 @@ { pkgs, ... }: +let + continuumSaveScript = "${pkgs.tmuxPlugins.continuum}/share/tmux-plugins/continuum/scripts/continuum_save.sh"; +in { programs.tmux = { enable = true; @@ -62,7 +65,7 @@ set -g status-left-length 40 set -g status-right-length 50 set -g status-left '#{?client_prefix,#[bg=#fb4934],#[bg=#a89984]}#[fg=#282828] #S #[bg=#282828] ' - set -g status-right '#[bg=#282828]#[fg=#ebdbb2] #{=20:#{b:pane_current_path}} #{?SSH_CLIENT,#[bg=#fabd2f],#[bg=#a89984]}#[fg=#282828]#{?pane_in_mode, [COPY],} #H | %H:%M ' + set -g status-right '#(${continuumSaveScript})#[bg=#282828]#[fg=#ebdbb2] #{=20:#{b:pane_current_path}} #{?SSH_CLIENT,#[bg=#fabd2f],#[bg=#a89984]}#[fg=#282828]#{?pane_in_mode, [COPY],} #H | %H:%M ' # Window status format set -g window-status-format ' #I:#W '