Discussion:
[iterm2-discuss] Help with Regex for Automatic Profile Switching
b***@gmail.com
2018-09-23 21:27:22 UTC
Permalink
Good Evening
I'd like to Automatically Switch my profile when I ssh to different
servers. Unfortunately I'm struggling with the regex need.

All the servers have a prompt of:
[***@server ~]#

I've used the regex of:
^\S(\w+)@([\w.-]+)\s~\S#
and the parameter of:
\1@\2

But this doesn't work. Can anyone point me in the right direction?

Thanks
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
b***@gmail.com
2018-09-23 21:34:39 UTC
Permalink
Ahhh put the regex in the wrong place!
Needs to be in the default profile..
Post by b***@gmail.com
Good Evening
I'd like to Automatically Switch my profile when I ssh to different
servers. Unfortunately I'm struggling with the regex need.
But this doesn't work. Can anyone point me in the right direction?
Thanks
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...