Bash made easy

Just add this useful commands to your ~/.bashrc:

# alternate mappings for "page up" and "page down" to search the history
bind '"\e[5~": history-search-backward'
bind '"\e[6~": history-search-forward'

So now your [PgUp] and [PgDn] in bash will auto-complete according to your previous history.


comments powered by Disqus