It’s not immediately obvious in the iTerm2 documentation on how to change it.
- open the iTerm2 preferences ⌘ + ,
- select the Profiles tab
- then select the Terminal subtab
- Beware, changes to the
Scrollback lines
value take effect immediately so checkUnlimited scrollback
now if you don’t want to delete your current buffer(s) - change the value of the
Scrollback Lines
to whatever you’d like - Uncheck the
Unlimited scrollback
option if you’d like to use yourScrollback lines
value