term-input-ring-file-name

term-input-ring-file-name is a variable defined in `term.el'.
Its value is
nil


Documentation:
If non-nil, name of the file to read/write input history.
See also `term-read-input-ring' and `term-write-input-ring'.

This variable is buffer-local, and is a good thing to set in mode hooks.

You can customize this variable.