The HISTSIZE environment variable contains the number of commands that will be saved in the history. Larger numbers use more memory. Default is 15.