New function Readline.write_history_file_overwrite() allows a prompt to be displayed to a user before overwriting a file.