Bash prompt has the autocomplete feature when we hitting tab. When there are multiple outcomes, hitting tab will display the candidate list.
I want to enter the initials of folder/filename and hit tab to complete as in programming autocomplete.
For example we have folder
foods as below
$ ls ./foods apple apple-cake banana cherry
When we type in
ap - hit tab, two folder listed i.e.
I'm looking for way to enter initials for
apple-cake as a c, and hit tab to get autocomplete as
Is it possible and how to?