add_history#
Append $line to the end of the history list so it shows up in later Up-arrow recalls and searches.
Synopsis#
$term->add_history($line) if $line =~ /\S/;
Readline does not deduplicate for you. Wrap the call in an if if
you want to skip blank or repeated lines. Use write_history to
persist the collected lines to disk.