Is it possible to have filetype-aware tab-completion in bash?
I.e. let's say there are two files in a directory, "foobar.txt" and "foobar.html", when I type "firefox foo" and then hit tab, bash would normally stop at "firefox foobar." because the normal, un-smart tab-completion is ambiguous. However preference could be given to "firefox foobar.html" because of the extension.
I think zsh implements something like this out of the box, but I want this in bash.
Is such a "smart" tab-completion possible in bash, and how?