Console history search by arrow up and arrow down

I find it very convenient using arrow up and arrow down buttons for searching in commands history in a shell. The mappings are in /etc/inputrc file:

# mappings for "arrow up" and "arrow down" to search the history
"\e[A": history-search-backward
"\e[B": history-search-forward

Leave a Reply