Can the bash "autocomplete" (via TAB TAB) entries be colored/formated?
<p><strong>Background:</strong></p>

<p>The "autocomplete" feature I am talking about is when you half-type a command or filename in bash, if you press TAB twice it will print out suggestions.</p>

<p><strong>Question:</strong></p>

<p>The entries output looks allot like the default <code>ls</code> behavior.</p>

<p>How could I override this to give it different colors or format (like <code>ls</code>)?</p>

<p><strong>EDIT: Copy paste of <a href="https://unix.stackexchange.com/questions/16243/is-there-a-way-to-set-coloring-for-cd-tab-complete/133866#133866">Answer on UnixStackExchange</a> - vote for it there!</strong></p>



<p>In bash 4.3 and later you can add</p>

<pre class="lang-none prettyprint-override"><code>set colored-stats on
</code></pre>

<p>to <code>~/.inputrc</code>.</p>

<p>See <a href="http://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html" rel="nofollow noreferrer">http://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html</a>:</p>

<blockquote>
  <p><code>colored-stats</code></p>
  
  <p>If set to &#x60;<code>on</code>', Readline displays possible completions using different colors to indicate their file type. The color definitions are taken from the value of the <code>LS_COLORS</code> environment variable. The default is &#x60;<code>off</code>'.</p>
</blockquote>

<p>You can use <a href="http://geoff.greer.fm/lscolors/" rel="nofollow noreferrer">http://geoff.greer.fm/lscolors/</a> to generate both <code>LS_COLORS</code> (which is used by GNU <code>ls</code> and <code>colored-stats</code>) and <code>LSCOLORS‏</code> (which is used by BSD <code>ls</code>).</p>