add the following 2 lines to .bash_profile

bind '"\e[A": history-search-backward' bind '"\e[B": history-search-forward'