When pressing tab in Bash, display autocompleted filenames like in zsh or fish

Actually, I'm running Bash, and I'll like to make a settle modification at the configuration. With zsh and fish, we have the opportunity to display files and directories when we press Tab. Is there a mofication to .bashrc we could make to do similar thing?

enter image description here

Thanks in advance!


Solution 1:

bind 'set show-all-if-ambiguous on'
bind 'TAB:menu-complete'

will get you close. The only difference is it automatically appends the first result to your command, which is pretty annoying if the directory is fairly full (and there aren't any pretty colors).

source: Bash autocomplete like zsh