Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Your machine probably has ^r for working through bash history

But that aside, if you’re into arrow pressing, a few lines in your .inputrc can go a long ways

Test this out sometime:

  # Incremental searching with Up and Down and Left and Right
  "\e[A": history-search-backward
  "\e[B": history-search-forward
Now you can type “find” and press up/down arrow to just cycle through history that starts with find


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: