about summary refs log tree commit diff
path: root/users/grfn
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-04-16T14·50-0400
committergrfn <grfn@gws.fyi>2021-04-16T14·56+0000
commitb090584af890de5a590fa8299409db733ca86ca1 (patch)
tree4811d0393df13405e9c0a8651b0fe3656130372e /users/grfn
parent46aa62449ff4857117dcf6d11a78027679ffe4ec (diff)
feat(grfn/home): Save GDB history across invocations r/2517
Change-Id: Icb02d64b036c07f3ab5f41f3b2c714ec164c2b05
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3023
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn')
-rw-r--r--users/grfn/system/home/modules/development.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/users/grfn/system/home/modules/development.nix b/users/grfn/system/home/modules/development.nix
index c33dad2b4c2b..932c03d40885 100644
--- a/users/grfn/system/home/modules/development.nix
+++ b/users/grfn/system/home/modules/development.nix
@@ -110,6 +110,14 @@ with lib;
     };
   };
 
+  home.file.".gdbinit".text = ''
+    set history filename ~/.gdb_history
+    set history save on
+    set history size unlimited
+    set history remove-duplicates unlimited
+    set history expansion on
+  '';
+
   home.file.".psqlrc".text = ''
     \set QUIET 1
     \timing