term-dynamic-complete-functions

term-dynamic-complete-functions is a variable defined in `term.el'.
Its value is

(term-replace-by-expanded-history term-dynamic-complete-filename)

  • This variable may be risky if used as a file-local variable.

Documentation:
List of functions called to perform completion.
Functions should return non-nil if completion was performed.
See also `term-dynamic-complete'.

This is a good thing to set in mode hooks.