From 12e6440b465941363375a1a7c166cecc59533cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B6xtermann?= Date: Sun, 28 Jul 2024 21:15:53 +0200 Subject: [PATCH] nixos/tmux: fix historyLimit when used with newSession When `history-limit` appears after `new-session` it does not have any effect. --- nixos/modules/programs/tmux.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/programs/tmux.nix b/nixos/modules/programs/tmux.nix index 247b1c7f62df..a157bedc8aae 100644 --- a/nixos/modules/programs/tmux.nix +++ b/nixos/modules/programs/tmux.nix @@ -16,6 +16,7 @@ let set -g default-terminal "${cfg.terminal}" set -g base-index ${toString cfg.baseIndex} setw -g pane-base-index ${toString cfg.baseIndex} + set -g history-limit ${toString cfg.historyLimit} ${optionalString cfg.newSession "new-session"} @@ -50,7 +51,6 @@ let setw -g aggressive-resize ${boolToStr cfg.aggressiveResize} setw -g clock-mode-style ${if cfg.clock24 then "24" else "12"} set -s escape-time ${toString cfg.escapeTime} - set -g history-limit ${toString cfg.historyLimit} ${cfg.extraConfigBeforePlugins}