Reputation: 1816
How can I make up/down arrow in ubuntu's terminal scroll up and down only commands that begin with what I've already typed? for example, if I entered these commands:
% bla
% do this
% do that
and then, I enter bl[up arrow], I want it to show me "bla" and not "do that" first.
Thanks.
Upvotes: 1
Views: 884
Reputation: 48
Is this right?
# ~/.inputrc
"\e[A": beginning-of-history
Here is the table of escape sequece. And Cursor Up is on the top.
And there are some interesting commands.
Reference:
How do I change bash history completion to complete what's already on the line?
Upvotes: 1