I am looking to set up the path for the source code when debugging with gdb. I chose to do that with a .gdbinit file.
Basically, it contains a command:
d
In my case I'd like to set global history in common $HOME/.gdbinit, so I used
$HOME/.gdbinit
set history filename ~/.gdb_history
instead of
set history filename $HOME/.gdb_history