set history {size <N>} {quiet|numbers} {full|trim} {default}
When leaving gnuplot the value of history size limits the number of lines saved to the history file. set history size -1 allows an unlimited number of lines to be written to the history file.
By default the history command prints a line number in front of each command. history quiet suppresses the number for this command only. set history quiet suppresses numbers for all future history commands.
The trim option reduces the number of duplicate lines in the history list by removing earlier instances of the current command.
Default settings: set history size 500 numbers trim.