Sunday, May 17, 2009

.gdbinit file

Personal settings for gdb -- nothing too elaborate

# color prompt
set prompt \001\033[1;36m\002(gdb) \001\033[0m\002

# history across invocations
set history save on
set history filename ~/.gdb_history

1 comment:

Rinat said...

A lot of thanks to you for this post. I've been searching for hours over the web for those \001 and \002 bounding characters that tell readline where characters that must not be counted reside.
Without them 'Home' button returned cursor not to the first character. Quite frustrating.
Thank you again.