From df164cc8af00b2fa4a416a5ce82c645840c642ec Mon Sep 17 00:00:00 2001 From: Misomosi Date: Fri, 4 Oct 2024 22:23:22 -0400 Subject: [PATCH] Save history in gdbinit --- .config/git/ignore | 3 ++- .gdbinit | 1 + README.md | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/git/ignore b/.config/git/ignore index 03227e7..f1b5895 100644 --- a/.config/git/ignore +++ b/.config/git/ignore @@ -1,5 +1,6 @@ -# Breakpoints produced by .gdbinit +# Files produced by .gdbinit and frields .breakpoints +.gdb_history # Scripts I use in git repos to automate certain niceties *.i.sh diff --git a/.gdbinit b/.gdbinit index 74956e0..d0ba99d 100644 --- a/.gdbinit +++ b/.gdbinit @@ -2,6 +2,7 @@ # If I start debugging, I've probably executed build scripts # and/or intend to run the program itself locally anyways. set auto-load safe-path / +set history save on define hook-quit save breakpoints .breakpoints end diff --git a/README.md b/README.md index e9ea56e..c99a350 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ set -g mode-keys vi # If I start debugging, I've probably executed build scripts # and/or intend to run the program itself locally anyways. set auto-load safe-path / +set history save on define hook-quit save breakpoints .breakpoints end @@ -74,8 +75,9 @@ Host github.com ## .gitignore ``` -# Breakpoints produced by .gdbinit +# Files produced by .gdbinit and frields .breakpoints +.gdb_history # Scripts I use in git repos to automate certain niceties *.i.sh -- 2.49.1