Function Reference
— Built-in Function: val = history_file ()
— Built-in Function: old_val = history_file (new_val)

Query or set the internal variable that specifies the name of the file used to store command history. The default value is "~/.octave_hist", but may be overridden by the environment variable OCTAVE_HISTFILE.