brandur/tmux-extra — pull request #5 by jamezpolley (2013-09-12 04:29:19+00:00)
Title: Detect and work with iTerm2's built-in tmux support.

iTerm2 has built-in tmux support; it does nice things like opening each tmux window in a new iterm window.

this simple modification looks at $TERM_PROGRAM to see if we're running in iTerm; and if so, it adds the "-CC" flag in a couple of places to work with iTerm.