From 287a48647c5da4c741fac746eb53f692d93b9698 Mon Sep 17 00:00:00 2001
From: bax- <bax-@users.noreply.github.com>
Date: Thu, 28 Jan 2016 11:24:38 +0100
Subject: [PATCH] remove TERM_PROGRAM condition

The variable `TERM_PROGRAM` isn't being taken to the root when you change to superuser via `su - root`, even if it is set on the client:
```
SendEnv TERM_*
```
And on the server:
```
AcceptEnv TERM_*
```
As this only works for the user the session is initiated with and not for root, I suggest to remove the `$TERM_PROGRAM` condition (as oh-my-zsh does).

see
https://github.com/sorin-ionescu/prezto/issues/1071
---
 modules/tmux/init.zsh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/tmux/init.zsh b/modules/tmux/init.zsh
index 070abcaf..1687bfcf 100644
--- a/modules/tmux/init.zsh
+++ b/modules/tmux/init.zsh
@@ -17,9 +17,7 @@ fi
 # Auto Start
 #
 
-if ([[ "$TERM_PROGRAM" = 'iTerm.app' ]] && \
-  zstyle -t ':prezto:module:tmux:iterm' integrate \
-); then
+if (zstyle -t ':prezto:module:tmux:iterm' integrate); then
   _tmux_iterm_integration='-CC'
 fi