I know that you can use FIGNORE to remove filename completion from suffixes.
For example, to avoid a lot of garbage files produced by LaTeX, I've been using:
However, I would really prefer to apply this FIGNORE only when using specific command line applications (in particular
mvim). That way, I would get full filename completion normally, and limit it only "on demand".
I've experimented a little with
$if blocks in my
~/.inputrc file but without any luck.