Let's say I have 3 files in a particular directory: abc.txt, aww.txt, ant.txt
If I do: cat a
(and press tab to see options) terminal will display the 3 file names: abc.txt, aww.txt, ant.txt
Is there any way to select the nth result rather than typing, by specifying the index number in the results the terminal displayed?
something like: cat a2
to get the second file (aww.txt
)?
ant.txt
). It can also be set up so that is possible to iterate backwards for a better navigation. That obviously implies changing the shell to Zsh though. If you consider that a good enough alternative I can write an answer for that. – kos Dec 08 '15 at 04:03