]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Improve GDB recommendation:
authordosisod <39638017+dosisod@users.noreply.github.com>
Wed, 28 Jun 2023 01:12:51 +0000 (18:12 -0700)
committerdosisod <39638017+dosisod@users.noreply.github.com>
Wed, 28 Jun 2023 01:12:51 +0000 (18:12 -0700)
The previous suggestion was to use an alias and specify the config path
directly, though GDB supports XDG paths according to the man pages.

I don't know what version XDG support was added, or if it has been there all
along. I'm currently using GDB version 13.1

programs/gdb.json

index 0f066a8948d92f4246fdb80de3ebf35267fed091..d9121d27a6393bccc193bbae1659ec7ca81e4a0d 100644 (file)
@@ -4,7 +4,7 @@
         {
             "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"
+            "help": "XDG is supported out-of-the-box, so you can simply move the file to _$XDG_CONFIG_HOME/gdb/gdbinit_.\n"
         },
         {
             "path": "$HOME/.gdb_history",