"\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:
Post a Comment