add the following to `/etc/inputrc` or your `~/.inputrc`:
"\e[A":history-search-backward "\e[B":history-search-forward