Are you pressing the up arrow key or doing
history|grep in a Linux terminal to get that long command you typed last week? Don’t do that. Use Ctrl + R to do a reverse search and it will show the matching command with an autocomplete. It’s efficient. You can also cycle through the search results by pressing Ctrl + R again.