From 8168f0c5fc631824623ec0306f0e41dc82fdde00 Mon Sep 17 00:00:00 2001
From: Myned <dev@bjork.tech>
Date: Sat, 15 Mar 2025 17:31:32 -0500
Subject: [PATCH] ghostty: increase scrollback limit

Signed-off-by: Myned <dev@bjork.tech>
---
 options/custom/programs/ghostty.nix | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/options/custom/programs/ghostty.nix b/options/custom/programs/ghostty.nix
index cdd2e30..e41e237 100644
--- a/options/custom/programs/ghostty.nix
+++ b/options/custom/programs/ghostty.nix
@@ -59,6 +59,10 @@ in {
             # https://ghostty.org/docs/config/reference#mouse-scroll-multiplier
             mouse-scroll-multiplier = 2;
 
+            # https://ghostty.org/docs/config/reference#scrollback-limit
+            #!! Per terminal surface
+            scrollback-limit = 1 * 1024 * 1024 * 1024; # GiB
+
             # https://ghostty.org/docs/config/reference#shell-integration-features
             shell-integration-features = "no-cursor";