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 linesvalue take effect immediately so checkUnlimited scrollbacknow if you don’t want to delete your current buffer(s) - change the value of the
Scrollback Linesto whatever you’d like - Uncheck the
Unlimited scrollbackoption if you’d like to use yourScrollback linesvalue
