Enable unlimited scrollback with iTerm2
Unlimited scrollback might not work properly as expected, I am not sure why but it is may be because of the config of zsh. 

So, I would suggest you specify the scrollback lines like 10000 (in my case) in the textbox and unchecked the "unlimited scrollback buffer" option