Use a builtin bash option which detects filenames in completion outputs and reflects this in sensible <tab> completion behaviour.