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
Update .inputrc with the following:
"\C-[OA": history-search-backward "\C-[[A": history-search-backward "\C-[OB": history-search-forward "\C-[[B": history-search-forward