iTerm2 Shell Integration and Oh My Zsh Conflicts
<p>I've recently re-installed iTerm2 and am now running into an interesting problem after setting up iTerm's Shell Integration.</p>

<p>Upon open a new terminal window, everything seems to look correct, showing the proper "agnoster" theme from Oh My ZSH:</p>

<p><a href="https://i.stack.imgur.com/tnvsR.png"><img src="https://i.stack.imgur.com/tnvsR.png" alt="working"></a></p>

<p>If I issue <code>clear</code>, now my terminal window looks like this:</p>

<p><a href="https://i.stack.imgur.com/tVL3q.png"><img src="https://i.stack.imgur.com/tVL3q.png" alt="not working"></a></p>

<p>I can revert things to the original state by sourcing <code>~/.zshrc</code> once again, but I'm really curious about the root issue and if there's any way to fix it.</p>

<p>I have tried hiding the marker in iTerm's settings, but that just results in a blank terminal.</p>

<p>In a previous install (before I wiped this Mac), I had Oh My ZSH and Shell Integration both going, and although it looked kind of wonky at times, it still seemed to keep the Oh My ZSH theme regardless of clearing the terminal or issuing any other command.</p>

<p>Does anyone have any ideas on this? I've checked the iTerm settings over and over, but can't seem to find anything that would be related.</p>