Feature Suggestion: Detect if client is iTerm2 for shell integration
So I really like the shell integration features of iTerm2 and tend to install it on the servers I access. However, I am hitting an issue where I occasionally need to log in from something other than my Mac, like a linux machine or locally on the machine. When I do this, however, my $PS1
is full of special characters that the other terminals don't recognize and it's entirely messed up. I was easily able to write a check to see if I am logged into a local terminal, just by seeing if the terminal is 'tty' or 'pts', but I am at a loss as to checking whether an SSH client is using iTerm2 or not. I am thinking that maybe there needs to be some sort of handshake between iTerm2 and the Shell Integration script.