"\e[B": history-search-forward
"\e[A": history-search-backward
And this to your .bash_proflie export HISTCONTROL=erasedups
export HISTSIZE=100000
shopt -s histappend
Now the up/down arrow keys auto search and complete backwards/forwards based on what's written. If the line is empty, it behaves as normal.This is also pretty neat, in your .bash_proflie:
bind '"\t":menu-complete'
Enables cyclic tab completionThese are the first things I do when I'm on another terminal.