Trying to organize i2cssh and iterm2

171 views
Skip to first unread message

Neil Hart

unread,
Nov 13, 2017, 9:27:11 AM11/13/17
to iterm2-discuss
I'm trying to see what is possible with using i2cssh and iterm2.  I've been using both for a while but not in a very organized way.

One of the starting points for this is that I am limited in what I can deploy on the remote servers so I am not looking at tmux or mosh yet.

I normally have several windows open with split panes for various clusters of servers.  For example:
  • qa1
    • 4 split panes (1 for each host like qa1_a, qa2_b, etc)
  • qa2
    • 4 split panes
  • prod
    • 8 split panes
There are over 12 environments that I can have windows open for.

There are a few things that would help me organized this.
  • Naming the windows by the environment name (qa1, etc).  Currently they are "ssh"
  • Naming the pane by the hostname.  I believe I know how to do this but I don't want it to be tied to changing the window name.
  • And the ideal way would be when starting a new i2cssh cluster, open them all in the same window in tabs.
    • So a single window with a title of "All Clusters" or something
    • Tabs for each new cluster I open with a title of the cluster or environment
    • Panes in each tab with a title of the host
I'll need to change the calls from i2cssh to call iterm properly but wanted to know what is possible.  And if I need to create a new profile for each matching i2cssh cluster, I can script that and create dynamic profiles.  I'm just wanted an idea of where to start and if this has been done before.

Thanks
Neil

George Nachman

unread,
Nov 14, 2017, 12:43:29 PM11/14/17
to iterm2-...@googlegroups.com
You can have your sessions (and therefore tabs and windows) named after their profile. Turn on "Show profile name" in Prefs > Appearance. If the remote host changes the title by an escape sequence, you can ensure it remains by turning on Prefs > Profiles > Window > Preserve profile name in tab title.

I don't know much about i2cssh, so I can't offer help with that.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Neil Hart

unread,
Nov 16, 2017, 1:54:17 PM11/16/17
to iterm2-discuss
It looks like I can control the window and tab titles but not the pane.  There is an issue for that: https://gitlab.com/gnachman/iterm2/issues/2038

To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages