set history expansion on set history save on set history filename ~/.gdb_history set print pretty # See also https://github.com/cyrus-and/gdb-dashboard