iTermocil

Last week Iโ€™ve introduced to you very neat script called Z.sh. ๐Ÿ’– Next to it I consider iTermocil as a perfect complement of your heavily used dev toolbox. ๐Ÿ”ง

What is it?

As official documentation stands out it allows us to setup pre-configured layouts of windows and panes in iTerm2, having each open in a specified directory and execute specified commands.

Correct. ๐Ÿ‘Œ

As a developer we can relatively often deal with situations in which we open the same set of tools in terminal in order to run specific project we work on actively. Its a good occasion to automate such thing and this is what iTermocil is perfect for. ๐Ÿ‘Š

How do I use it with JustinDB?

Its worth to notice that JustinDB can be started in a cluster - in order to emulate real-world environment we can represent it on local machine as a pool of processes (single process represents single node of the cluster).

Iโ€™ve preconfigured bunch of different iTermocilโ€™s configs. Depends on how big I want to have custer (3 or 5 nodes most of the time) I start cluster bootstraping with dedicated configuration.

Iโ€™m running:

itermocil justin-cluster-5 or itermocil justin-cluster-3

Puff, magic happens here ๐Ÿ’ญ. This is what I see after a while - working JustinDB cluster I can run tests against it.