X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/blobdiff_plain/89ed0fd2756b4b54b0afc0741db5ee46f097a48b..8f8d4bd2f159975e9dcb5bbcb58a3b6ed7ccea74:/programs/gdb.json diff --git a/programs/gdb.json b/programs/gdb.json index 5c579c2..0f066a8 100644 --- a/programs/gdb.json +++ b/programs/gdb.json @@ -2,9 +2,14 @@ "name": "gdb", "files": [ { - "path": "${HOME}/.gdbinit", + "path": "$HOME/.gdbinit", "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 following:\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" } ] }