My question is similar to this one, except for emacs instead of vim. The issue is that I have a cpp file that I want to open and when I type f[TAB] it autocompletes to foo the binary file foo instead of foo.cpp. Is there a way to turn of autocomplete for files with certain (or no) extension? Or is there a way to prioritize certain extensions?
EDIT: I've used this solution for autocompletion in the minibuffer, but I want a solution for Bash autocompletion.
EDIT:
I've found that I can do export FIGNORE=.bin to ignore all files with the .bin extension in Bash autocomplete. The issue with this solution is that this doesn't work for a file with no extension, and also there's no way to make this occur only when there are no .cpp files in the same directory.