]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/blobdiff - programs/gdb.json
feat: 🎸 Add carbon-now-cli to programs (#148)
[xdg-ninja.git] / programs / gdb.json
index f0898fc3d15c7fc7a5fc5820b72f99c194fa6c48..ce4866c8abb3ce6057fe0f1c11d775db0c792b31 100644 (file)
@@ -3,8 +3,13 @@
     "files": [
         {
             "path": "${HOME}/.gdbinit",
-            "moveable": true,
+            "movable": true,
             "help": "Alias gdb to use custom locations:\n\n```bash\nalias gdb=gdb -n -x $XDG_CONFIG_HOME/gdb/init```\n"
+        },
+        {
+            "path": "$HOME/.gdb_history",
+            "movable": true,
+            "help": "GDB supports setting it's config file path through an environment variable. Simply move your _.gdb_history_ file to _XDG_CONFIG_HOME/gdb_ and export the follwing:\n\n```bash\nexport GDBHISTFILE=\"$XDG_CONFIG_HOME\"/gdb/.gdb_history \n```\n\nNote: If you are using GEF this does not work, as GEF overwrites the filepath. In order to use the correct path again, you have to call ```set history filename ~/.config/gdb/.gdb_history``` after you source _gef.py_ in your gdb init file.\n"
         }
     ]
 }