Enable tmux scrolling in iTerm2

When using iTerm2 the one option I could not live without is unlimited scrollback and support for mouse / trackpad scrolling for tmux. Here is how to enable unlimited scrollback and support for tmux in iTerm2 preferences:

Enable unlimited scrollback for tmux

Bonus Protip: You may also with to enable mouse support by adding this to the ~/.tmux.conf file in your home directory (create one if you don’t have it already):

set-window-option -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on