title: duplicate paths found in tmux mac
body: <p>i have a mac terminal where i have a tmux session running.  When i call my env variable, i get duplicate paths that repeat.  I tried various solutions here but none seem to work.  I'm using zsh shell by default.</p>
  <p>What i tried:</p>
  <ol>
  <li>Went to my zprofile and included the following line:</li>
  </ol>
  <pre><code>if [ -f /etc/profile ]; then
      PATH=&quot;&quot;
      source /etc/profile
  fi
  </code></pre>
  <p>Didn't work.</p>
  <ol start="2">
  <li>Went to my profile and have the following code, still didn't work:</li>
  </ol>
  <pre><code>if [ -x /usr/libexec/path_helper ]; then
      PATH=&quot;&quot;
      eval `/usr/libexec/path_helper -s`
  fi
  
  if [ &quot;${BASH-no}&quot; != &quot;no&quot; ]; then
          [ -r /etc/bashrc ] &amp;&amp; . /etc/bashrc
  fi
  </code></pre>
  <p>My bashrc file:</p>
  <pre><code>if [ -z &quot;$PS1&quot; ]; then
     return
  fi
  
  PS1='\h:\W \u\$ '
  # Make bash check its window size after a process completes
  shopt -s checkwinsize
  
  [ -r &quot;/etc/bashrc_$TERM_PROGRAM&quot; ] &amp;&amp; . &quot;/etc/bashrc_$TERM_PROGRAM&quot;
  </code></pre>
  <p>All the above files are located in /etc/ directory.</p>
  <p>All my env variables are in .zprofile.</p>
  <p>Thanks</p>