user/host Badge updating *after* logging out of the host
iTerm2 Build 2.9.20160313 OS X 10.11.4
I have two triggers set up right now. The first is a trigger that looks for a specific string in my prompt and highlights it if it's there. That seems to be working properly.
The second trigger is intended to show the user@host badge. The regex I'm using is as follows:
^[ (\w+)@([\w.-]+)(.+
It matches properly given the following prompt:
[ XenoPhage@local(1/2) 5:24:28pm ] ~ DESKTOP> $
If I ssh to another machine with the same prompt (different user/host) the badge doesn't change. However, the moment I log out, the badge updates to the user@host I was just on. If I ssh back in, the badge changes to the machine I just sshed from. ie, it seems to be updating for the machine I was previously on.
I have tried rearranging the triggers, but that seems to have no effect. I'm seeing this on multiple machines.