From: Lukas Pietzschmann Date: Wed, 22 Jun 2022 14:04:56 +0000 (+0200) Subject: Added GDB and GEF (#103) X-Git-Tag: v0.2.0.1~13 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/ab56010ecb77db977b28e46b8d842e9098721936?ds=inline Added GDB and GEF (#103) --- diff --git a/programs/gdb.json b/programs/gdb.json index 5c579c2..ce4866c 100644 --- a/programs/gdb.json +++ b/programs/gdb.json @@ -5,6 +5,11 @@ "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 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" } ] } diff --git a/programs/gef.json b/programs/gef.json new file mode 100644 index 0000000..40f871b --- /dev/null +++ b/programs/gef.json @@ -0,0 +1,10 @@ +{ + "name": "GEF", + "files": [ + { + "path": "$HOME/.gef.rc", + "movable": true, + "help": "GEF supports setting it's config file path through an environment variable. Simply move your _.gef.rc_ file to _XDG_CONFIG_HOME/gef_ and export the follwing:\n\n```bash\nexport GEF_RC=\"$XDG_CONFIG_HOME\"/gef/.gef.rc \n```\n" + } + ] +}