Using BASH, you can get the last command (when connected through a PuTty terminal) using the UP arrow key.
I want to know if there's a way to "autocomplete" the last command I did starting with mail, for example.
In Google Chrome, for instance, the way the address bar works, by narrowing down from your previous web history the site you are trying to visit.
So what I want to do is start to type "mail", then press the UP key for example, and the last command starting with mail gets autocompleted. If I press up again, then the 2nd last command starting with mail get autocompleted.
Is this possible in BASH?