Make iTerm2 window history larger

You have to set the scroll back buffer. This option is found under Profiles >> Terminal.

You can either set the number of lines in the buffer to the number of lines you want to scroll back, or check the box for "unlimited scrollback".

Screenshot of Terminal preferences showing the Terminal section of Profiles