comint-input-ring-file-name

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


Documentation:
If non-nil, name of the file to read/write input history.
See also `comint-read-input-ring' and `comint-write-input-ring'.
`comint-mode' makes this a buffer-local variable. You probably want
to set this in a mode hook, rather than customize the default value.

You can customize this variable.