Re:iTerm2 version 3 beta released
by mhurron on Wednesday June 01, 2016 @01:22PM
(#11816271)
It seems like you should be able to do that because it allows regex matching for other things, but to do profile switching, you must have shell integration installed.
https://iterm2.com/documentation-automatic-profile-switching...