We'll be using itermocil to aid the creation process.
-
Simply follow the installation process in the itermocil repo (best way to install is brew, which we already have)
-
Create a folder
.itermocil
in your home folder -
itermocil uses a yaml based configuration file. The filename is the key to trigger the iterm creation process. E.g the w99.yml would be instantiated with
itermocil w99
-
Add a yaml file into the
.itermocil
folder with whatever name you wish -
copy these configurations
windows:
- name: ninenine
root: ~/
layout: main-vertical
panes:
- ssh 99
- ssh -t 99 "tmux attach-session -t spa"
- ssh -t 99 "tmux attach-session -t oldweb"
Please note that the ssh 99
configuration comes from the ~/.ssh/config
which is defined by your user settings
- Use
itermocil w99
to create the windows. You may also bind an alias to this