title: Bash - autocomplete <TAB> - find all occurence and auto select one
body: <p>I have checked a lot of other answers but did not really find what I am looking for. Problem is I need to reproduce this with a bash auto-completion a zsh function:</p>
  
  <p>If I got this:</p>
  
  <pre><code>: ls -l
  drwxr-xr-x 2 user user 4096 Feb 12 21:17 Desktop
  drwxr-xr-x 3 user user 4096 Feb 13 14:11 Documents
  drwxr-xr-x 2 user user 4096 Feb 13 14:18 dotfiles
  drwxr-xr-x 4 user user 4096 Feb 15 09:03 Downloads
  </code></pre>
  
  <p>In zsh I can type:</p>
  
  <pre><code>: fil &lt;hit tab&gt;
  </code></pre>
  
  <p>Zsh will complete dotfiles folder name by itself. or if I got more than one folder who contain the string, he will give me a selection choice with all the occurence. </p>
  
  <p>Any idea or script that do this ? </p>