Home » Questions » Computers [ Ask a new question ]

How can I set my BASH history scrolling to filter by what I've already typed?

How can I set my BASH history scrolling to filter by what I've already typed?

Given a history of commands:

Asked by: Guest | Views: 284
Total answers/comments: 1
bert [Entry]

"You can configure incremental searching in /etc/inputrc (for machine-wide changes), or ~/.inputrc (just for your user account).

Add these two lines:

""\e[A"": history-search-backward
""\e[B"": history-search-forward"