5 replies
January 2013

Eric

Press the PageUp key and Bash will show you the previous command that matches what you have typed in

1 reply
January 2013

davorb

Pressing C-r does something similar.

January 2013

kieranandrews

Or you could just use ZSH :P - https://github.com/robbyrussel...

January 2013 ▶ Eric

coolRR

Tried it, didn't work.

December 2013

disqus_Z0284lyfFG

This is a clever trick, but it broke my ability to do CTRL-<right arrow=""> or CTRL-<left arrow=""> to jump word by word around in a command. Adding this below in ~/.inputrc fixed it:

# Fix CTRL-RIGHT ARROW and CTRL-LEFT ARROW to jump around word by word
"\C-[[1;5D": backward-word
"\C-[[1;5C": forward-word