How do I change bash history completion to complete what's already on the line?

Posted by blokkie on Stack Overflow See other posts from Stack Overflow or by blokkie
Published on 2009-06-23T01:13:12Z Indexed on 2014/06/08 9:25 UTC
Read the original article Hit count: 329

Filed under:
|
|
|

I found a command a couple of months ago that made my bash history auto-complete on what's already on the line when pressing the up arrow:

$ vim fi

Press ?

$ vim file.py

I'd like to set this up on my new computer, because it saves a lot of time when keeping a big history. The problem is that I can't for the life of me remember where it was mentioned and reading through endless bash references and tutorials unfortunately didn't help either.

Does anybody know the command?

© Stack Overflow or respective owner

Related posts about linux

Related posts about bash