How to get Linux autocompletion with numbered menu? : <p>I've been trying to find this for a couple of days now and while I am aware that I can write a bash function to get it the way I want, I am sure that this option comes out of the box.</p>

<p>I have recently upgraded to RHEL 7.11 and in previous RHEL versions when using double tab it would display a numbered menu when I had ambiguous options.</p>

<p>Consider this, I have a directory with the following files:</p>

<pre><code>abc  abcd  abcde  abcdef  abcdefg  abcdefgh  abcdefghi
</code></pre>

<p>So when I type:</p>

<pre><code>cat abc [tab][tab]
</code></pre>

<p>And there were multiple matches, I would get:</p>

<pre><code>1) abc
2) abcd
3) abcde
4) abcdef
5) abcdefg
6) abcdefgh
7) abcdefghi
</code></pre>

<p>Subsequently I could type <strong>'7'</strong> and <strong>[tab]</strong> and it would concatenate the file at the option <strong>7)</strong>.</p>

<p>This is super useful when there are a lot of similar options with many files starting with the same characters (as is the case on my server where file names are preceded with system names for clarity).</p>

<p>Any ideas?</p>
