Teamocil is a simple tool used to automatically create sessions, windows and splits in `tmux` with Ruby and YAML. Like [tmuxinator](https://github.com/aziz/tmuxinator), but with splits, not just windows.
## Usage
$ gem install teamocil
$ mkdir ~/.teamocil
$ teamocil --edit sample
$ tmux
$ teamocil sample
## Options
*`--here` opens the session in the current window, it doesn’t create an empty first window.
*`--layout` takes a custom file path to a YAML layout file.
*`--edit` opens the layout file (whether or not `--layout` is used) with `$EDITOR`.
You can wrap your entire layout file in a `session` and Teamocil will rename the current session (so that you can find it more easily when running `tmux list-sessions`) before creating your windows.
Every window must define an array of splits that will be created within it. A vertical or horizontal split will be created, depending on whether the `width` or `height` parameter is used.
#### Item keys
*`cmd` (the commands to initially execute in the split)
*`width` (the split width, in percentage)
*`height` (the split width, in percentage)
*`target` (the split to set focus on, before creating the current one)