Friday, June 26, 2009

History and page up/down keys in Fedora

In Fedora, the page-up and page-down keys are mapped to beginning of history and end of history which I don't find very useful. These entries are in "/etc/inputrc".

"\e[5~": beginning-of-history
"\e[6~": end-of-history

I prefer to have them mapped to search history forwards and backwards. It allows me to type the beginning of the command and hit page up/down and bash will auto complete the command by recalling the command from history. Here is relevant parts of "/etc/inputrc" which achieves this effect.

"\e[5~": history-search-backward
"\e[6~": history-search-forward

No comments: