Append the last nelements items of the history list to file. The default filename is ~/.history.
readline/append_history_file
append_history_file