Friday, September 24, 2010

bash config to use arrows to scroll history

Insert into .bashrc to turn on using arrows up/down to search in bash history.
 
bind '"\e[A"':history-search-backward
bind '"\e[B"':history-search-forward
shopt -s cdspell
shopt -s cmdhist
shopt -s histappend
export HISTCONTROL="ignoredups" 
 
very useful ;-)